aboutsummaryrefslogtreecommitdiff
path: root/src/interp/i-map.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/i-map.boot')
-rw-r--r--src/interp/i-map.boot4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interp/i-map.boot b/src/interp/i-map.boot
index 90db927f..a0ed9d15 100644
--- a/src/interp/i-map.boot
+++ b/src/interp/i-map.boot
@@ -226,7 +226,7 @@ getUserIdentifiersIn body ==
body = $ClearBodyToken => nil
[body]
body is ["WRAPPED",:.] => nil
- body is [op,:itl,body1] and op in '(COLLECT REPEAT %collect) =>
+ body is [op,:itl,body1] and op in '(COLLECT REPEAT %repeat %collect %reduce) =>
userIds :=
S_+(getUserIdentifiersInIterators itl,getUserIdentifiersIn body1)
S_-(userIds,getIteratorIds itl)
@@ -1026,7 +1026,7 @@ findLocalVars1(op,form) ==
form is ['is,l,pattern] =>
findLocalVars1(op,l)
for var in listOfVariables rest pattern repeat mkLocalVar(op,var)
- form is [oper,:itrl,body] and oper in '(REPEAT COLLECT %collect %repeat) =>
+ form is [oper,:itrl,body] and oper in '(REPEAT COLLECT %collect %repeat %reduce) =>
findLocalsInLoop(op,itrl,body)
form is [y,:argl] =>
y is "Record" or (y is "Union" and argl is [[":",.,.],:.]) =>