← Back to context

Comment by TZubiri

13 hours ago

The way I understand it, the map,filter,reduce functions in python exist as pythonic language constructs:

-map: [x*2 for x in xs]

-filter: [x for x in xs if x%0==2]

-reduce: ummm..

Maybe something like:

sum = x+ret for x in xs from ret=0

Maybe the closest is 'join' similar to `",".join([...])`? If we could replace the string with an operator