Add min, max, min_by, max_by functions.

This commit is contained in:
Stephen Dolan committed 2012-12-04 22:45:03 +00:00
1 parent 616e8f9924
commit c0a2f1ab47
3 files changed
+82 -1

No files matched your search

+8
View File
@@ -456,3 +456,11 @@ sort
unique
[1,2,5,3,5,3,1,3]
[1,2,3,5]
[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"]]
[min,max,min_by(.),max_by(.)]
[]
[null,null,null,null]