init package:rio

O(n/c) Return all the elements of a ByteString except the last one.
O(1) Return all the elements of a ByteString except the last one. An exception will be thrown in the case of an empty ByteString.
Return all the elements of a list except the last one. The list must be non-empty.
Extract everything except the last element of the stream.
O(n/c) Returns all but the last character of a Text, which must be non-empty. Subject to fusion.
O(1) Returns all but the last character of a Text, which must be non-empty. Subject to fusion.
O(1) Yield all but the last element without copying. The vector may not be empty.
O(1) Yield all but the last element without copying. The vector may not be empty.
O(1) Yield all but the last element without copying. The vector may not be empty.
O(1) Yield all but the last element without copying. The vector may not be empty.
O(n) Return all initial segments of the given ByteString, shortest first.
The inits function returns all initial segments of the argument, shortest first. For example,
>>> inits "abc"
["","a","ab","abc"]
Note that inits has the following strictness property: inits (xs ++ _|_) = inits xs ++ _|_ In particular, inits _|_ = [] : _|_
The inits function takes a stream xs and returns all the finite prefixes of xs.
Returns a sequence of all prefixes of this sequence, shortest first. For example,
inits (fromList "abc") = fromList [fromList "", fromList "a", fromList "ab", fromList "abc"]
Evaluating the <math>th prefix takes <math>, but evaluating every prefix in the sequence takes <math> due to sharing.
O(n) Return all initial segments of the given Text, shortest first.
Pi: Punctuation, Initial quote
_init gives you access to all-but-the-last elements of the list:
>>> "Hello." ^. _init
"Hello"
See documentation for _tail, as _init and _tail are pretty similar.
True if the argument is an IEEE infinity or negative infinity
O(1) Yield all but the last element without copying. The vector may not be empty but this is not checked.
O(1) Yield all but the last element without copying. The vector may not be empty but this is not checked.
O(1) Yield all but the last element without copying. The vector may not be empty but this is not checked.
O(1) Yield all but the last element without copying. The vector may not be empty but this is not checked.