def read_xs

bend-visgraph@2.0.0.0 · bend_visgraph.bend:254

import bend-visgraph@2.0.0.0/bend_visgraph.bend as BendVisgraph
import Base
import bend-visgraph@2.0.0.0/src/series.bend as Series

254def read_xs(none: Bool, path: String) -> IO(XsIn):
255  match none:
256    case True{}:
257      IO.pure(XsIn, NoXs{})
258    case False{}:
259      do IO<XsIn>:
260        text : String <- Series.read_text(path)
261        return XsRead{Series.parse(text)}

Uses (8)

Used by (1)