Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module exists primarily for symmetry with Data.List.Snoc However, it can also be used in place of the Prelude list type:
This module only exports functions that are efficient on linked lists. Many
functions on that type (last
, isSuffixOf
) though
technically implementable, do not represent the intended use of a linked list
in terms of performance.
Additionally, this module does not export any partial functions: head
and
tail
return their results under a Maybe
.