|
|
|
|
|
by uryga
2180 days ago
|
|
btw, my favorite FP-hack: let-in expressions with lambdas OR list comprehensions: let x = foo in expr
can be [expr for x in (foo,)][0]
(kinda reads like a Haskell `where` clause!) or: (lambda x = foo: expr)()
useful in a pre-walrus-operator REPL :) |
|
You would not get through code review with that in any shop that has discipline.