tail
lib.strings.tail
Primop
Docs pulled from | This Revision | 43 minutes ago
Takes 1 arguments
list
Return the list without its first item; abort evaluation if the argument isn’t a list or is an empty list.
Warning
This function should generally be avoided since it's inefficient: unlike Haskell's
tail
, it takes O(n) time, so recursing over a list by repeatedly callingtail
takes O(n^2) time.
Noogle detected
Detected Type
tail :: [a] -> [a]
Implementation
This function is implemented in c++ and is part of the native nix runtime.