Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Array nth Functions
(view source)
Revision as of 20:24, 4 March 2017
190 bytes added
,
20:24, 4 March 2017
→Array.nth(SomeNth, SomeCount)
Line 6:
Line 6:
==Array.nth(SomeNth, SomeCount) ==
==Array.nth(SomeNth, SomeCount) ==
−
Get the nth element from the array. SomeCount (default as 1) of elements from the nth index is given.
+
Get the nth element from the array. SomeCount (default as 1) of elements from the nth index is given
. Result is an array.
+
+
If the first element is required, use the Array.firstelement() or Array.lastelement()
.
The following are the easier way to get the xth element from an array. If multidimensional array, it gives the xth row.
The following are the easier way to get the xth element from an array. If multidimensional array, it gives the xth row.
Line 55:
Line 57:
Array.millionth
Array.millionth
+
+
Array.firstelement
+
+
Gives first element.
+
+
Array.lastelement
+
+
Gives last element.
1..5.second()
1..5.second()
Joseph
Administrators
, writer
2,824
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Community portal
Current events
Recent changes
Help
Tools
ZCubes Web Platform
Printable version