~eli_oat/guava

446de4d155c8da5fc6c91263e28ee4e700c7343a — eli_oat 26 days ago da899a1 master
Updated COOKBOOK
1 files changed, 16 insertions(+), 0 deletions(-)

M COOKBOOK.md
M COOKBOOK.md => COOKBOOK.md +16 -0
@@ 200,7 200,23 @@ First we bang the number 1 into the variable `number`. Then we ask for `number` 

This will execute the body 151 times. 

`times` is essentially a for loop like so, 

```js
for (let i = 0; i < n; i++) {
    // do stuff
}
```

### Repeat 

`repeat` is similar to `times`, but, whereas `times` is like a for loop, `repeat` is more like a while loop, as such, `repeat` needs to be paired with either `while` or `until`. 

```
1 !a [ ?a .s cr ?a ++ !a ] while [ ?a 5 lteq? ] repeat
```

```
1 !a [ ?a .s cr ?a ++ !a ] until [ ?a 5 lteq? ] repeat
```