def penetrable
import bend-visgraph@2.0.0.0/visgraph.bend as Visgraphimport Base
789# The limited penetrable graph of the `n` values `ys` at `xs`, crossing at
790# most `limit` points. The x of `Index{}` is the index as an F32, exact
791# for up to 2^24 values; the x of `At{xs}` must increase.
792def penetrable(+g: Visibility, +dir: Direction, +k: Weight, +lo: F32, +hi: F32, +limit: U32, ys: Array<F32>, xs: Xs, +n: U32) -> Edges:
793 match xs:
794 case Index{}:
795 penetrable.built(True{}, g, dir, k, lo, hi, limit, ys, no_xs(), n)
796 case At{a}:
797 penetrable.built(False{}, g, dir, k, lo, hi, limit, ys, a, n)