mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 21:03:10 +03:00
917 B
917 B
cen % %cen
Pulling
The %
runes pull ++arms
and ++wings
from the
subject, often modifying their values. The %
runes are similar to
function calls, or execution tools. We use them to either compute some
code with changes in the subject, or produce the output from a core.
There are two categories of %
runes.
Pull with changes:
%=
The natural %
rune. Evaluates p
with the changes specified
in q
.
%_
Evaluates p
with the changes specified in q
, then
casts the product back to the type of p
.
%*
Evaluates p
from a door q
with changes r
.Terminated by ==
.
Pull the empty arm $
, similar to calling a function:
%-
slams a core with one argument.
%+
slams a core with two arguments.
%^
slams a core with three arguments.