def head_of.go
import bolt@1.27.0.0/src/syntax/bind.bend as Bindimport 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))