def joined

bend-lint-rules@0.2.0.0 · layout/format.bend:2219

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base
import bend-lint-api@0.2.0.0/shared/strings.bend as Strings

2219# The text of the first tokens of `xs`, after `acc`, the texts so far, last first.
2220def joined(xs: List<&2, Tree>, acc: List<&2, String>) -> String:
2221  match xs:
2222    case Nil{}:
2223      Strings.onto(acc, "")
2224    case Con{x, rest}:
2225      joined(rest, Token.text(first(x)) <> acc)

Uses (6)

Used by (1)