def text_of

ezx@1.11.0.0 · src/share/args.bend:22

import ezx@1.11.0.0/src/share/args.bend as Args
import Base

22# a variable's text; unset, ""
23def text_of(res: Result<&1, &1, U32 & String, String>) -> String:
24  match res:
25    case Fail{_e}:
26      ""
27    case Done{s}:
28      s

Uses (4)

Used by (2)