mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
210 B
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