Syntax
last(array)
Description
The last() function returns the last element of an array. If the array is empty a zero length string is returned.
Example
include("main")
a=["Some", "data"]
println(last(a))
data
Just another Monkey Lang
last(array)
The last() function returns the last element of an array. If the array is empty a zero length string is returned.
include("main")
a=["Some", "data"]
println(last(a))
data