mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-23 23:12:04 +03:00
41 lines
917 B
Markdown
41 lines
917 B
Markdown
|
<div class="short">
|
||
|
|
||
|
`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.
|
||
|
|
||
|
</div>
|
||
|
|
||
|
#### 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 `==`.
|
||
|
|
||
|
<hr></hr>
|
||
|
|
||
|
### 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.
|
||
|
|
||
|
|
||
|
<hr></hr>
|
||
|
|
||
|
<kids></kids>
|