on fdf57cc help sign in
urbit.org/reference/cheat-sheet.udon
38 lines 1.1 kB history raw
1:- :~ title/'Cheat sheet'
2 sort/'4'
3 ==
4;>
6# Hoon cheat sheet
8##### `~rovnys-ricfer`
10_Original Fora post_ [here](https://urbit.org/fora/posts/~2017.9.18..22.31.06..24d5~).
12;br;
14[Download .pdf](https://storage.googleapis.com/media.urbit.org/docs/hoon-cheat-sheet--2017-12-12.pdf)
16;br;
18We've found it's useful to have a quick reference of Hoon's syntax always at
19hand. So above is a download link to a Hoon cheatsheet .pdf. It's missing a
20few of the literal syntaxes, but it covers the most common ones.
22This doesn't list any of the Ford runes, although there is now at least
23some documentation for those [here](/docs/learn/arvo/arvo-internals/ford#runes).
25The following runes also exist, but are currently undocumented and not listed in
26the cheat sheet:
28```
29!: :: turn on debugging printfs
30!. :: turn off debugging printfs
31!; :: using the "type of type", emit the type for an expression
32!, :: emit AST of expression
33$* :: bunt (irregular form is *)
34^. :: use gate to transform type
35^& :: zinc (covariant) -- see the docs on advanced types
36```
38Hope this helps!