Fix a crash on group_by of empty list. Fixes #208.

This commit is contained in:
Stephen Dolan committed 2013-11-07 12:18:48 +00:00
1 parent 0feeb7d0d4
commit 8d4748c8df
2 files changed
+19 -13

No files matched your search

+4
View File
@@ -610,6 +610,10 @@ unique
[1,2,5,3,5,3,1,3]
[1,2,3,5]
unique
[]
[]
[min, max, min_by(.[1]), max_by(.[1]), min_by(.[2]), max_by(.[2])]
[[4,2,"a"],[3,1,"a"],[2,4,"a"],[1,3,"a"]]
[[1,3,"a"],[4,2,"a"],[3,1,"a"],[2,4,"a"],[4,2,"a"],[1,3,"a"]]