def swap.of

ezx@1.11.0.0 · src/lock/up.bend:602

import ezx@1.11.0.0/src/lock/up.bend as Up
import Base

602# a committed tree whose hash changed is a tree to remove
603def swap.of(vend: Bool, +old: String, +new: String) -> String:
604  match vend:
605    case False{}:
606      ""
607    case True{}:
608      swap.hash(String.eq(old, new), old)

Uses (4)

Used by (1)