on 492ae2f help sign in
36 lines 886 B history raw
1---
2sort: 11
3---
5# Intrinsics (`.` runes)
7Anything Nock can do, Hoon can do.
9## Regular forms
11### `:bump`, `.+`, "dotlus", `{$bump p/twig}`
13Syntax: *1-fixed*
15The product: the product of `p`, which must be an atom, plus 1.
17### `:same`, `.=`, "dottis", `{$same p/twig q/twig}`
19Syntax: *2-fixed*.
21The product: yes iff `p` and `q` produce the same value. The span
22of `p` must nest within the span of `q`, or vice versa.
24### `:nock`, `.*`, "dottar", `{$nock p/twig q/twig}`
26The product: Nock of the formula produced by `q`, with the
27subject produced by `p`. Typeless.
29### `:wish`, `.^`, "dotket", `{$wish p/moss q/twig}`
31The product: the noun `q` dereferenced in the Urbit global
32namespace. The product must nest within the icon of `p`.
34Only available in user-level code. Not blocking except in
35dojo-level code (blocks for a generator, fails if it would block
36for an app).