»
scan1
list.scan1
(f Binary list.A list.A list.A)
=>
Sequence list.A[Redefinition of Sequence.scan1]
[Contains abstract features]
¶0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)
that the initial value is taken to be the first element of the given
list.
for example, (1::id).scan (+) would create [1, 2, 3, 4, ...], while
(1..).scan (+) would create [1, 3, 6, 10, ...].