Rebuild html.
This commit is contained in:
parent
b98e9f2107
commit
0264efdda6
|
|
@ -11775,7 +11775,8 @@ div#notebook {
|
||||||
</div>
|
</div>
|
||||||
<div class="inner_cell">
|
<div class="inner_cell">
|
||||||
<div class="text_cell_render border-box-sizing rendered_html">
|
<div class="text_cell_render border-box-sizing rendered_html">
|
||||||
<h1 id="Replacing-Functions-in-the-Dictionary">Replacing Functions in the Dictionary<a class="anchor-link" href="#Replacing-Functions-in-the-Dictionary">¶</a></h1>
|
<h1 id="Replacing-Functions-in-the-Dictionary">Replacing Functions in the Dictionary<a class="anchor-link" href="#Replacing-Functions-in-the-Dictionary">¶</a></h1><p>For now, there is no way to define new functions from within the Joy language. All functions (and the interpreter) all accept and return a dictionary parameter (in addition to the stack and expression) so that we can implement e.g. a function that adds new functions to the dictionary. However, there's no function that does that. Adding a new function to the dictionary is a meta-interpreter action, you have to do it in Python, not Joy.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"# Replacing Functions in the Dictionary"
|
"# Replacing Functions in the Dictionary\n",
|
||||||
|
"For now, there is no way to define new functions from within the Joy language. All functions (and the interpreter) all accept and return a dictionary parameter (in addition to the stack and expression) so that we can implement e.g. a function that adds new functions to the dictionary. However, there's no function that does that. Adding a new function to the dictionary is a meta-interpreter action, you have to do it in Python, not Joy."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
# Replacing Functions in the Dictionary
|
# Replacing Functions in the Dictionary
|
||||||
|
For now, there is no way to define new functions from within the Joy language. All functions (and the interpreter) all accept and return a dictionary parameter (in addition to the stack and expression) so that we can implement e.g. a function that adds new functions to the dictionary. However, there's no function that does that. Adding a new function to the dictionary is a meta-interpreter action, you have to do it in Python, not Joy.
|
||||||
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,14 @@
|
||||||
Replacing Functions in the Dictionary
|
Replacing Functions in the Dictionary
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
For now, there is no way to define new functions from within the Joy
|
||||||
|
language. All functions (and the interpreter) all accept and return a
|
||||||
|
dictionary parameter (in addition to the stack and expression) so that
|
||||||
|
we can implement e.g. a function that adds new functions to the
|
||||||
|
dictionary. However, there's no function that does that. Adding a new
|
||||||
|
function to the dictionary is a meta-interpreter action, you have to do
|
||||||
|
it in Python, not Joy.
|
||||||
|
|
||||||
.. code:: ipython2
|
.. code:: ipython2
|
||||||
|
|
||||||
from notebook_preamble import D, J, V
|
from notebook_preamble import D, J, V
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<link rel="index" title="Index" href="../genindex.html" />
|
<link rel="index" title="Index" href="../genindex.html" />
|
||||||
<link rel="search" title="Search" href="../search.html" />
|
<link rel="search" title="Search" href="../search.html" />
|
||||||
<link rel="next" title="Categorical Programming" href="Categorical.html" />
|
<link rel="next" title="Categorical Programming" href="Categorical.html" />
|
||||||
<link rel="prev" title="Quadratic formula" href="Quadratic.html" />
|
<link rel="prev" title="Traversing Datastructures with Zippers" href="Zipper.html" />
|
||||||
|
|
||||||
<link rel="stylesheet" href="../_static/custom.css" type="text/css" />
|
<link rel="stylesheet" href="../_static/custom.css" type="text/css" />
|
||||||
|
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="../index.html">Documentation overview</a><ul>
|
<li><a href="../index.html">Documentation overview</a><ul>
|
||||||
<li><a href="index.html">Essays about Programming in Joy</a><ul>
|
<li><a href="index.html">Essays about Programming in Joy</a><ul>
|
||||||
<li>Previous: <a href="Quadratic.html" title="previous chapter">Quadratic formula</a></li>
|
<li>Previous: <a href="Zipper.html" title="previous chapter">Traversing Datastructures with Zippers</a></li>
|
||||||
<li>Next: <a href="Categorical.html" title="next chapter">Categorical Programming</a></li>
|
<li>Next: <a href="Categorical.html" title="next chapter">Categorical Programming</a></li>
|
||||||
</ul></li>
|
</ul></li>
|
||||||
</ul></li>
|
</ul></li>
|
||||||
|
|
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
|
|
@ -2,6 +2,14 @@
|
||||||
Replacing Functions in the Dictionary
|
Replacing Functions in the Dictionary
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
For now, there is no way to define new functions from within the Joy
|
||||||
|
language. All functions (and the interpreter) all accept and return a
|
||||||
|
dictionary parameter (in addition to the stack and expression) so that
|
||||||
|
we can implement e.g. a function that adds new functions to the
|
||||||
|
dictionary. However, there's no function that does that. Adding a new
|
||||||
|
function to the dictionary is a meta-interpreter action, you have to do
|
||||||
|
it in Python, not Joy.
|
||||||
|
|
||||||
.. code:: ipython2
|
.. code:: ipython2
|
||||||
|
|
||||||
from notebook_preamble import D, J, V
|
from notebook_preamble import D, J, V
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue