Add first, nth, last (fix #510)

This commit is contained in:
Nicolas Williams committed 2014-07-28 13:18:58 -05:00
1 parent 14bc1f6526
commit e1b20b48f0
3 files changed
+39

No files matched your search

+4
View File
@@ -242,6 +242,10 @@ null
[11,22,33,44,55,66,77,88,99]
[11,22,33]
[first(range(.)), last(range(.)), nth(0; range(.)), nth(5; range(.)), try nth(-1; range(.)) catch .]
10
[0,9,0,5,"nth doesn't support negative indices"]
#
# Slices
#