def name.got
import ezx@1.11.0.0/src/fetch/plan.bend as Planimport Base
553# what BEND_LIB holds for a name
554def name.got(got: Maybe<&2, String>, +nv: String, +hash: String) -> Nm:
555 match got:
556 case None{}:
557 NmPut{nv, hash, ""}
558 case Some{text}:
559 +was = String.trim(text)
560 name.held(String.eq(was, hash), nv, hash, was)