urbit/base/pub/doc/hoon/runes/kt/ktbr.md

62 lines
944 B
Markdown
Raw Normal View History

2015-02-18 06:03:21 +03:00
[ketbar, `^|`, %ktbr](#ktbr)
============================
Convert `%gold` to `%iron`
`^|` is a natural hoon that converts a [`%gold`]() core into an
[`%iron`]() core.
See also
--------
[barlus, `|+`, %brls](#brls)
============================
[ketpam, `^&`, %ktpm](#ktpm)
============================
Produces
--------
Twig: `[%ktbr p=twig]`
Sample
------
`p` is a [twig]().
Tall form
---------
^| p
Wide form
---------
^|(p)
Irregular form
--------------
None
Examples
--------
/~zod/try=> =cor |= a=@
+(a)
new var %cor
/~zod/try=> +<.cor
a=0
/~zod/try=> =iro ^|(cor)
new var %iro
/~zod/try=> +<.iro
! -axis.6
! peek-park
! exit
Here we crete a simple gate and assign it to the shell variable `cor`.
We can examine the sample of `cor` with `+<` to produce `a=0`. Assigning
a new shell variable, `iro` as the `^|` of `cor` we can no longer peek
in to its subject.