shrub/pub/doc/hoon/runes/kt.md
2015-06-19 17:16:48 -04:00

40 lines
726 B
Markdown

<div class="short">
`ket ^ %ket`
============
Type operations
---------------
The `^` runes perform type operations. With the exception of `^-` and
`^.`, they are all natural runes.
There are three basic categories of `^` runes.
</div>
#### Cast values to specific types
[`^-`]() Casts `q` to the type of the [bunt]() of `p`.
[`^+`]() Casts `q` to the type of `p`.
<hr></hr>
#### Change the [variance]() of [cores]()
[`^|`]() Converts core from [%gold]() to [%iron]().
[`^&`]() Converts core from [%gold]() to [%zinc]().
[`^?`]() Converts core from [%gold]() to [%lead]().
<hr></hr>
#### Those that add a variable name
[`^=`]() Changes the type of a value by adding a [`++face`]().
<hr></hr>
<kids></kids>