3 ms·
You are correct. For those not familiar with Haskell, unlines . map reverse . lines is the same thing as (python) lambda data : [line[::-1] for line
by wyager 12y ago
You are correct.
For those not familiar with Haskell,
unlines . map reverse . lines
is the same thing as (python)
lambda data : [line[::-1] for line in data]
whereas
unlines . reverse. lines
is the same as
lambda data : [line for line in data][::-1]
- dbaupp 12y agoWell, you need '\n'.join(...) for the "unlines" bit.