def name.put

ezx@1.11.0.0 · src/doctor/plan.bend:583

import ezx@1.11.0.0/src/doctor/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/world.bend as W

583# a name's file BEND_LIB held, as the answer the lock reads for the name,
584# ahead of the rest. One it did not hold answers nothing, so the lock goes on
585# asking for it.
586def name.put(+nv: String, got: Maybe<&2, String>, rest: List<&2, W.Reply>) -> List<&2, W.Reply>:
587  match got:
588    case Some{text}:
589      W.Reply{W.Name{nv, "BEND_LIB/names"}, W.Said{text}} <> rest
590    case None{}:
591      rest

Uses (6)

Used by (1)