:: element -> [element] -> [element]

The intersperse function takes an element and a list and `intersperses' that element between the elements of the list. For example,
>>> intersperse ',' "abcde"
"a,b,c,d,e"
Append an element to the start of a list, an alias for (:).
cons 't' "est" == "test"
\x xs -> uncons (cons x xs) == Just (x,xs)
init of non-empty list, safe. O(n). init1 a as = init (a:as)
Used to make switching to the text package easier.
O(n) Prepend an element.
O(n) Prepend an element
Replace all locations in the input with the same value. The default definition is fmap . const, but this may be overridden with a more efficient version.

Examples

Perform a computation with Maybe and replace the result with a constant value if it is Just:
>>> 'a' <$ Just 2
Just 'a'

>>> 'a' <$ Nothing
Nothing
Replace all locations in the input with the same value. The default definition is fmap . const, but this may be overridden with a more efficient version.
Replace all locations in the input with the same value. The default definition is fmap . const, but this may be overridden with a more efficient version. Using ApplicativeDo: 'a <$ bs' can be understood as the do expression
do bs
pure a
with an inferred Functor constraint.
Cons element to the vector
Append element to the vector
delete x removes the first occurrence of x from its list argument. For example,
>>> delete 'a' "banana"
"bnana"
It is a special case of deleteBy, which allows the programmer to supply their own equality test.
Cons an element on to the front of a list unless it is already there.