Created
February 3, 2013 19:49
-
-
Save rbpasker/4703364 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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