def subpath.finish

gralha-svg-render@0.1.0.1 · svg.bend:1216

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base

1216def subpath.finish(points: List<&2, Point>, closed: Bool, paths: List<&2, Subpath>) -> List<&2, Subpath>:
1217  match points:
1218    case Nil{}: paths
1219    case Con{h, t}:
1220      +p = h
1221      Con{Subpath{points.rev(Con{p, points.clean(t, p)}, Nil{}), closed}, paths}

Uses (6)

Used by (2)