| fromList :: [elem] -> list |
|
| toList :: list -> [elem] |
|
| splitFirst :: list -> Maybe (elem, list) |
| Return Just first and rest for a non-empty list,
and Nothing for an empty list. |
|
| last :: list -> Maybe elem |
| Return Just last for a non-empty list,
and Nothing for an empty list. |
|
| fetchElement :: Int -> list -> elem |
| Fetch an element by count, zero is the first element. |
|
| take :: Int -> list -> list |
| Get the first n elements of a list. |
|
| drop :: Int -> list -> list |
| Get all but the first n elements of a list. |
|
| splitAt :: Int -> list -> (list, list) |
| Much like take and drop together. |
|
| any :: (elem -> Bool) -> list -> Bool |
| Does any element match a test? |
|
| all :: (elem -> Bool) -> list -> Bool |
| Do all elements match a test? |
|
| nubBy :: ?comp :: Equivalence elem => list -> list |
|
| deleteBy :: ?comp :: Equivalence elem => elem -> list -> list |
|
| unionBy :: ?comp :: Equivalence elem => list -> list -> list |
|
| intersectBy :: ?comp :: Equivalence elem => list -> list -> list |