7 kyu
Last
976 of 8,882xcthulhu
Description:
Find the last element of the given argument(s). If a single argument is passed and is a list/array or a string, return its last element. It is guaranteed that there will be at least one argument and that single-argument arrays/lists/strings will not be empty.
Examples
last [1, 2, 3, 4] -- => 4
last ['x', 'y', 'z'] -- => 'z'
(courtesy of haskell.org)
Lists
Fundamentals
Stats:
Created | Sep 14, 2014 |
Published | Sep 14, 2014 |
Warriors Trained | 15858 |
Total Skips | 821 |
Total Code Submissions | 82212 |
Total Times Completed | 8882 |
Haskell Completions | 976 |
Clojure Completions | 670 |
JavaScript Completions | 3743 |
Ruby Completions | 709 |
CoffeeScript Completions | 64 |
Python Completions | 1940 |
Rust Completions | 644 |
Java Completions | 892 |
Total Stars | 183 |
% of votes with a positive feedback rating | 77% of 1075 |
Total "Very Satisfied" Votes | 714 |
Total "Somewhat Satisfied" Votes | 223 |
Total "Not Satisfied" Votes | 138 |