def grab_name

mylsm-lsm-store@0.6.0.1 · src/Fs.bend:446

import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs
import Base

446# Pure accumulator step (leaf: matches structurally, never recurses).
447# Past-end fetches answer "" (SNil{}), which is skipped.
448def grab_name(nm: String, acc: List<String>) -> List<String>:
449  match nm:
450    case SNil{}:
451      acc
452    case SCon{_, _}:
453      Con{nm, acc}

Uses (2)

Used by (1)