Add first, nth, last (fix #510)
This commit is contained in:
1 parent
14bc1f6526
commit
e1b20b48f0
3 files changed
+39
No files matched your search
@@ -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
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user