Two sum: Difference between revisions

Content added Content deleted
(Added Unicon, though this would look better if it suspended all solutions and not simply returning the first)
m (→‎ES5: Added one word to text)
Line 350: Line 350:
of the cartesian grid, skipping mirror-image and duplicate number pairs.
of the cartesian grid, skipping mirror-image and duplicate number pairs.
Returning [] where a sum condition is not met similarly acts as a filter – all of the empty lists
Returning [] where a sum condition is not met similarly acts as a filter – all of the empty lists
in the map are eliminated by the concat.
in the map result are eliminated by the concat.


<lang JavaScript>(function () {
<lang JavaScript>(function () {