Difference between revisions of "Array.car()"
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
Get the first element of the array. | Get the first element of the array. | ||
+ | |||
+ | Same as [[Array.head()]] | ||
A=1..100; | A=1..100; | ||
Line 12: | Line 14: | ||
1 | 1 | ||
+ | |||
+ | A=32..789; | ||
+ | A.car() | ||
+ | |||
+ | 32 | ||
+ | |||
+ | ==See Also== | ||
+ | [[Array.cdr() | cdr]] | ||
+ | |||
+ | [[Array.tail() |tail]] |
Latest revision as of 09:07, 22 April 2020
Array.car()
Get the first element of the array.
Same as Array.head()
A=1..100; A.head()
1
A=32..789; A.car()
32