7
Last seen 3 years ago
Member for 5 years, 24 days
Difficulty Normal
Commented a forum post "different orders of ternary operands" created by
sbbaik
Oh, foolish me~. Thank you again! It's a great help!!
Commented a forum post "different orders of ternary operands" created by
sbbaik
By the way, why can't I use "if" operator here? like...
>>> flat_list(e) = lambda e: sum( map( flat_
Commented a forum post "different orders of ternary operands" created by
sbbaik
Really thank you for your effort to explain it in detail!!!
Now I understand the second term of the
Created a forum post "different orders of ternary operands"
### 1st ###
flat_list = lambda e: type(e) == list and sum( map( flat_list, e ), [] ) or [e]
### 2n