Hacker symbol

June 30, 2022 ~ 1 min read

Using lambdas


I used a lambda function today for the first in python. I have to thank nix for teaching me how to read functional programming. 😁

data = sorted(data, key=lambda item: datetime.datetime.strptime(item[2], "%Y-%m-%d"))

list(map(lambda path: transcribePDF(path, writer), files))

Sebastian Bolaños

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.