def subpaths
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
1265def subpaths(es: List<&2, Edge>) -> List<&2, Subpath>:
1266 match es:
1267 case Nil{}: Nil{}
1268 case Con{Edge{ax, ay, bx, by, stroked, closed}, rest}: subpaths.go(edge.kind(stroked, closed), ax, ay, bx, by, rest, Sub{Nil{}, Nil{}})