Skip to content

Commit 6776930

Browse files
committed
fix broken macro in Anarki's version of the tutorial
1 parent 6c63fac commit 6776930

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tut-anarki.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ For example, consider this definition of `repeat`:
10641064

10651065
```
10661066
arc> (mac repeat (n . body)
1067-
`(for x 1 ,n ,@body))
1067+
`(up x 1 ,n ,@body))
10681068
#3(tagged mac #<procedure>)
10691069
```
10701070

@@ -1088,7 +1088,7 @@ code above is equivalent to
10881088

10891089
```
10901090
(let x "blub "
1091-
(for x 1 3 (pr x)))
1091+
(up x 1 3 (pr x)))
10921092
```
10931093

10941094
Now the bug is obvious. The macro uses the variable `x` to hold the
@@ -1112,7 +1112,7 @@ the one in the Arc source) is
11121112

11131113
```
11141114
(mac repeat (n . body)
1115-
`(for ,(uniq) 1 ,n ,@body))
1115+
`(up ,(uniq) 1 ,n ,@body))
11161116
```
11171117

11181118
If you need one or more uniqs for use in a macro, you can use `w/uniq`,

0 commit comments

Comments
 (0)