7 kyu
Last
974 of 8,815xcthulhu
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 | 15771 |
Total Skips | 814 |
Total Code Submissions | 81889 |
Total Times Completed | 8815 |
Haskell Completions | 974 |
Clojure Completions | 669 |
JavaScript Completions | 3725 |
Ruby Completions | 709 |
CoffeeScript Completions | 64 |
Python Completions | 1902 |
Rust Completions | 636 |
Java Completions | 883 |
Total Stars | 183 |
% of votes with a positive feedback rating | 77% of 1066 |
Total "Very Satisfied" Votes | 709 |
Total "Somewhat Satisfied" Votes | 219 |
Total "Not Satisfied" Votes | 138 |