def code.at

bolt@1.27.0.0 · src/codes.bend:71

import bolt@1.27.0.0/src/codes.bend as Codes
import Base

71# the stable code; the slug itself when it is not a rule
72def code.at(mm: Maybe<&2, Entry>, +slug: String) -> String:
73  match mm:
74    case None{}:
75      slug
76    case Some{Entry{_s, +id, _grp}}:
77      id

Uses (3)

Used by (1)