last

return the last item of the given collection


Parameters

last collection :string :block :range

Attributes

n:integerget last *n* items

Returns

  • :null
  • :any

Examples

copy
print last "this is some text" ; t print last ["one" "two" "three"] ; three

copy
print last.n:2 ["one" "two" "three"] ; two three

Related