drop
lib.drop
Docs pulled from | This Revision | about 1 hour ago
Remove the first (at most) N elements of a list.
Inputs
count
-
Number of elements to drop
list
-
Input list
Type
drop :: int -> [a] -> [a]
Examples
lib.lists.drop
usage example
drop 2 [ "a" "b" "c" "d" ]
=> [ "c" "d" ]
drop 2 [ ]
=> [ ]
Noogle detected
Implementation
The following is the current implementation of this function.
drop =
count:
list: sublist count (length list) list;