def xs
import bend-visgraph@2.0.0.0/src/series.bend as Seriesimport Base
114# The x coordinates `p` of a series of `n` values: ts2vg takes one x per
115# value, each above the one before.
116def xs(p: Parsed, +n: U32) -> XsCheck:
117 match p:
118 case Bad{line}:
119 XsBad{"line " ++ U32.show(line) ++ " of the x coordinates holds no number"}
120 case Values{+rev, +m}:
121 xs_check(U32.is_eq(n, m), increases(rev), rev, n, m)