urbit/pub/docs/dev/hoon/runes/dt/dtzy.md

48 lines
817 B
Markdown
Raw Normal View History

2015-11-07 22:14:45 +03:00
[dotzay, %dtzy](#dttr)
2015-02-18 06:03:21 +03:00
======================
Odored atom
2015-11-07 21:49:34 +03:00
`dotzay` is a natural rune that produces a non-cubed atomic constant of
2015-02-18 06:03:21 +03:00
odor `p` and value `q`. `dotzay` is never used explicitly, but always
implicitly to give odors to atoms.
Produces
--------
Twig: `[%dtzy p=term q=@]`
Sample
------
`p` is a [`++term`](). `q` is an [atom]().
Tall form
---------
None
Wide form
---------
None
Irregular form
--------------
None
Examples
--------
~zod/try=> (ream '12')
[%dtzy p=%ud q=12]
~zod/try=> (ream '&')
[%dtzy p=%f q=0]
~zod/try=> (ream '~.sam')
[%dtzy p=%ta q=7.168.371]
Here we use [`++ream`]() to unpack how values are parsed. Passing what
what would appear to be constants reveals that they are in fact parsed
into an odor [`++term`] and their numeric atom representation.