JanetDocsPlaygroundI'm feeling luckyGitHub sign in

last



    function
    boot.janet on line 748, column 1

    (last xs)

    Get the last element from an indexed data structure.


4 examplesSign in to add an example
Loading...
(last :hello)
# => 111
sogaiuPlayground
(last 'hello)
# => 111
sogaiuPlayground
(last "hello")
# => 111
sogaiuPlayground
(last [1 1 2 3 5 8])
# => 8
sogaiuPlayground