def first_line

bolt@1.27.0.0 · src/lsp/proto.bend:228

import bolt@1.27.0.0/src/lsp/proto.bend as Proto
import Base

228# a text's first line
229def first_line(s2: String) -> String:
230  Maybe.default(&2, String, List.head(&2, String, String.lines(s2)), "")

Uses (4)

Used by (1)