Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
»

scan1

list.scan1

scan1 works like its counterpart with an initial value, except
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, ...].

redefines:

0.094dev (2025-07-10 15:41:47 GIT hash eafa42ae743de61b62f958948d7abb5fada7756f built by fridi@fzen)