def texts

bend-lint-rules@0.2.0.0 · layout/imports.bend:188

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

188# The texts of `es`, after `acc`, the texts so far, last first.
189def texts(es: List<&2, Entry>, acc: List<&2, String>) -> String:
190  match es:
191    case Nil{}:
192      Strings.onto(acc, "")
193    case Con{Entry{at, base, path, alias, loads, text}, rest}:
194      texts(rest, text <> acc)

Uses (4)

Used by (1)