3 ms·
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
by TZubiri 9d 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