Two sum: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
Hout (talk | contribs)
Line 192:
===ES5===
 
Nested calls toNesting concatMap yieldyields the cartesian product of the list with itself, and
functions passed to Array.map() have access to the array index in their second argument.
Returning [] where the y index is lower than then x index ignores the 'lower triangle' of the cartesian grid,