def last.go
import ezx@1.11.0.0/src/add/plan.bend as Planimport Base
757# the last of some lines, `prev` when there are none after it
758def last.go(ls: List<&2, String>, +prev: String) -> String:
759 match ls:
760 case []:
761 prev
762 case h <> t:
763 last.go(t, h)