spanl
where <math> is the prefix length.
spanl,
applied to a predicate
p and a sequence
xs, returns
a pair whose first element is the longest prefix (possibly empty) of
xs of elements that satisfy
p and the second element
is the remainder of the sequence.
where <math> is the prefix length.
spanl,
applied to a predicate
p and a sequence
xs, returns
a
These based on the point where the predicate fails:
- This ys means that the predicate was true for all
items, and ys is the entire original sequence.
- That zs means that the predicate failed on the
first item, and zs is the entire original sequence.
- These ys zs gives ys (the prefix of
elements that satisfy the predicae) and zs (the remainder of
the sequence)
Similar to
span, but performs the test on the entire remaining
list instead of just one element.
spanList p xs is the same as
(takeWhileList p xs,
dropWhileList p xs)
The type alias SpanList is used by displaySpan
First element is the starting position, second the length and third
the annotation at the given range.
The annotations need to all come after the anchor. Make sure this is
the case.
Set of HTML elements that are represented as Span with a class equal
as the element tag itself.
Increment line number in a
SrcSpan.