def head_of.go

bolt@1.27.0.0 · src/syntax/bind.bend:203

import bolt@1.27.0.0/src/syntax/bind.bend as Bind
import Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy

203def head_of.go(cs: List<&2, Char>) -> List<&2, Char>:
204  match cs:
205    case Nil{}:
206      Nil{}
207    case Con{+c, t}:
208      Lazy.stop(List<&2, Char>, Char.is_eq(c, '.'), Nil{}, _u => c <> head_of.go(t))

Uses (4)

Used by (1)