def par.nonblank
import snap@1.4.0.0/src/par.bend as Parimport Base
47# the strings that are not empty, which is what a list of statuses amounts to
48# once a trailing newline has been counted as a line
49def par.nonblank(ss: List<&2, String>) -> List<&2, String>:
50 match ss:
51 case Nil{}:
52 Nil{}
53 case Con{+h, t}:
54 +more = par.nonblank(t)
55 Bool.pick(List<&2, String>, String.is_empty(h), more, h <> more)