def text.at

ezx@1.11.0.0 · src/ws/joint.bend:682

import ezx@1.11.0.0/src/ws/joint.bend as Joint
import Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K

682# a file's text in a walk's files, "" when it holds none at that path
683def text.at(fs: List<&2, K.Source>, +at: String) -> String:
684  match fs:
685    case []:
686      ""
687    case K.Source{+fa, ft} <> tl:
688      rest = text.at(tl, at)
689      Bool.pick(String, String.eq(fa, at), ft, rest)

Uses (5)

Used by (1)