Update some of the docs.

This commit is contained in:
Simon Forman
2020-05-20 19:15:47 -07:00
parent 6a6b63bf62
commit ffabda0407
60 changed files with 5182 additions and 5853 deletions
+4 -4
View File
@@ -39,7 +39,7 @@ Straightforward (although the order of each pair is reversed, due to the way `zi
```python
define('pair_up == dup uncons swap unit concat zip')
define('pair_up dup uncons swap unit concat zip')
```
@@ -86,7 +86,7 @@ And thus:
```python
define('total_matches == 0 swap [i [=] [pop +] [popop] ifte] step')
define('total_matches 0 swap [i [=] [pop +] [popop] ifte] step')
```
@@ -109,7 +109,7 @@ Now we can define our main program and evaluate it on the examples.
```python
define('AoC2017.1 == pair_up total_matches')
define('AoC2017.1 pair_up total_matches')
```
@@ -186,7 +186,7 @@ J('[1 2 3 4] dup size 2 / [drop] [take reverse] cleave zip')
```python
define('AoC2017.1.extra == dup size 2 / [drop] [take reverse] cleave zip swap pop total_matches 2 *')
define('AoC2017.1.extra dup size 2 / [drop] [take reverse] cleave zip swap pop total_matches 2 *')
```