def look

ezx@1.11.0.0 · src/pkg/pkg.bend:742

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base

742# a file list's text for a path, first in the list, or None when it has none
743def look(fs: List<&2, Source>, +at: String) -> Maybe<&2, String>:
744  match fs:
745    case []:
746      None{}
747    case Source{+h, text} <> t:
748      look.step(String.eq(h, at), text, _u => look(t, at))

Uses (6)

Used by (7)