def outline.edges

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

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

1596# The closed polygon through the points, as edges.
1597def outline.edges(pts: List<&2, Point>, acc: List<&2, Edge>) -> List<&2, Edge>:
1598  match pts:
1599    case Nil{}: acc
1600    case Con{p, rest}:
1601      +pp = p
1602      outline.edges.go(pp, rest, pp, acc)

Uses (4)

Used by (3)