Cli.para_marks: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7357-7365 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7357&end_line=7365 import Base # Each line, None for an empty one, which ends a paragraph; a line of only # spaces is left out. def para_marks(lines: List<&2, String>) -> List<&2, Maybe<&2, String>>: match lines: case Nil{}: Nil{} case SNil{} <> tail: None{} <> para_marks(tail) case +line <> tail: List.append(&2, Maybe<&2, String>, line_mark(spaces_only(line), line), para_marks(tail)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=line_mark https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=spaces_only