undefinedfix
Sign in

How to use Python's lambda to realize complex logic?

user2035888 edited in Sat, 24 Sep 2022

I saw a post saying that Python's lambda is a single line function, so we can't realize complex logic empirically, but in Scala, we can realize more complex processing logic in map. I would like to ask the God who often uses lambda functions, what kind of complex logic have you realized?

1 Replies
wejrd
commented on Sat, 24 Sep 2022

Lambda is a simple and non reusable function. Functions with complex logic deserve a name ~