def Slots.put

bend-kit-migrate@0.3.0.0 · migrate.bend:414

import bend-kit-migrate@0.3.0.0/migrate.bend as Migrate
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

414def Slots.put(m: Maybe<&2, Key>, k: Bytes.Bytes, x: Scalar, s: Slots) -> Result<&1, &1, Error, Slots>:
415  match m:
416    case Some{key}:
417      Slots.set(key, x, s)
418    case None{}:
419      Fail{Unknown{k}}

Uses (8)

Used by (1)