def joined

yaml-for-bend@0.1.1.0 · compose.bend:201

import yaml-for-bend@0.1.1.0/compose.bend as Compose
import Base
import yaml-for-bend@0.1.1.0/value.bend as V

201def joined(merged: Result<&2, &2, String, Ord>, own: Result<&2, &2, String, Ord>) -> Result<&2, &2, String, V.Yaml>:
202  match merged:
203    case Fail{e}:
204      Fail{e}
205    case Done{m}:
206      match own:
207        case Fail{e}:
208          Fail{e}
209        case Done{o}:
210          Done{V.Mapping{ord.entries(ord.merge(ord.entries(o), m))}}

Uses (6)

Used by (1)