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

1.1 KiB

tis = %tis

Subject modification

The = runes modify the subject. They are used whenever you want to push something on the subject, modify the subject, or use the results of one formula in another.

There are three basic categories of = runes.

Replace the subject

=> The natural = rune. Uses the product of p as the subject for the formula q.

=< Inverse of =>. Uses the product of q as the subject for the formula a. Used to make code more readable by making it flow vertically.


Expand the subject

=+ Nock 8. Pushes data and code p on the subject for the formula q.

=- Inverse of =+. Pushes data and code q on the subject for the formula q.

=| Pushes the bunt of a tile p on the subject for the formula q.

=* Pushes on an alias onto the subject.


Alter the subject

=. Modifies the subject with a single change.

=: Modifies the subject with a multiple changes.