def code.at

bolt@1.26.0.0 · src/codes.bend:70

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

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

Uses (3)

Used by (1)