Skip to content

Instantly share code, notes, and snippets.

@rbpasker
Created February 3, 2013 19:49
Show Gist options
  • Save rbpasker/4703364 to your computer and use it in GitHub Desktop.
Save rbpasker/4703364 to your computer and use it in GitHub Desktop.
// tuples shown instead of objects, for brevity
map output:
[id1, "a", null]
[id1, "a", null]
[id2, "a", null]
[id2, "b", null]
[id3, "b", null]
[id4, "c", null]
what i'd like to see as a result
["a", [id1, id2] ]
["b", [id2, id3] ]
["c", [id4] ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment