- :null
- :any
first
return the first item of the given collection
Parameters
first collection :string :block :range
Attributes
n | :integer | get first *n* items |
Returns
Examples
copyprint first "this is some text" ; t print first ["one" "two" "three"] ; one
copyprint first.n:2 ["one" "two" "three"] ; one two