Blurb.line.first: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/pub/blurb.bend as Blurb Lines 44-51 of ezx@1.11.0.0/src/pub/blurb.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/pub/blurb.bend&start_line=44&end_line=51 import Base # a text's first line: everything before its first newline, the whole text # when it has none def line.first(text: String) -> String: match text: case SNil{}: SNil{} case SCon{+h, t}: line.step(Char.is_eq(h, '\n'), h, _u => line.first(t)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pub/blurb.bend&name=line.step