roc/test/snapshots/repl/list_fold_string.md
2025-12-01 20:40:53 +11:00

210 B

META

description=List.fold with string accumulator should concatenate correctly
type=repl

SOURCE

» ["a", "b", "c"].fold("", |acc, s| Str.concat(acc, s))

OUTPUT

"abc"

PROBLEMS

NIL