def points.clean
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
1209def points.clean(xs: List<&2, Point>, +previous: Point) -> List<&2, Point>:
1210 match xs:
1211 case Nil{}: Nil{}
1212 case Con{h, t}:
1213 +hh = h
1214 points.clean.go(F32.is_lt(point.distance(hh, previous), 0.0000001), hh, t, previous)