+iu: info utilities
a utility door for axals of dimes.
the source code lives in /lib/hawk/hoon
the following examples are assuming the subject:
in a hawk file, this door will be bound to the card
under the face c
.
=/ c ~(. iu the-card)
where the-card
looks something like:
(reb:c)
returns
[~ [p=~.tas q=8.026.662.980.649.509.985]]
(reb:c /name)
returns
[~ [p=~.t q=9.142.624.152.563.479.481.165.742.175.586]]
attribute lookup, or bunted dime
(rib:c)
returns
[p=~.tas q=8.026.662.980.649.509.985]
(rib:c /name)
returns
[p=~.t q=9.142.624.152.563.479.481.165.742.175.586]
attribute lookup, or crash
(rob:c)
returns
[p=~.tas q=8.026.662.980.649.509.985]
(rob:c /name)
returns
[p=~.t q=9.142.624.152.563.479.481.165.742.175.586]
attribute lookup, or fallback
(rub:c /name tas/%fallback)
returns
[p=~.t q=9.142.624.152.563.479.481.165.742.175.586]
(rub:c /not/in/info tas/%fallback)
returns
[p=~.tas q=7.738.135.660.106.375.526]
(peb:c /name)
returns
[~ "buy groceries"]
attribute print, with bunted dime
attribute print, or crash
attribute print, with fallback
(pub:c /name tas/%fallback)
(pub:c /not/in/info tas/%fallback)
unitzed attribute explicit print
(peb-as:c %ta /name)
returns
[~ "~.buy groceries"]
(peb-as:c %ta /not/in/info)
attribute explicit print, with bunted dime
(pib-as:c %ta /not/in/info)
attribute explicit print, or crash
(pob-as:c %ta /not/in/info)
attribute explicit print, with fallback
(pub-as:c %ta /name tas/%fallback)
(pub-as:c %ta /not/in/info tas/%fallback)