Skip to content

Latest commit

 

History

History

last

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Find the last element of the given argument(s).

Examples

last(Arrays.asList(1, 2, 3, 4)); // =>  4
last("xyz");                     // => "z"
last(1, 2, 3, 4);                // =>  4
last(new int[]{1, 2, 3, 4});     // =>  4

In javascript and CoffeeScript a list will be an array, a string or the list of arguments.