def compose
import yaml-for-bend@0.1.1.0/compose.bend as Composeimport Base
import yaml-for-bend@0.1.1.0/token.bend as T
import yaml-for-bend@0.1.1.0/parse.bend as P
562# The documents the events hold, through schema +s+, within limits +lim+.
563def compose(p: P.Parsed, +s: Schema, +lim: Limits) -> Result<&2, &2, T.Error, List<&2, Doc>>:
564 match p:
565 case P.Parsed{events, error}:
566 composed(co.run(events, s, caps(lim), Done{co.new()}), error)