This is still 1 line, just separated by semicolon ?
I appreciate that won't work well for all use cases, but it'd eliminate a lot of the pain with the current lambda implementation.
For whatever reason, the Python community declared multiline lambdas as non-pythonic and this project aims to remain pythonic, so they went with semicolons instead.
I'm not a Python developer myself, but if that was the only thing holding you back, then perhaps that reason is now slightly reduced?
Assuming that Python’s support for nested functions carries over to Coconut, it seems like a reasonably-complete feature set.
L |> map$(def (x) -> (
y = 1/x;
y*(1 - y)
))
You can also make multiline python lambdas by using brackets. That is if you can fit your code into an expression.