File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 105105 carp : (msg , type = SyntaxError ) ->
106106 throw type "#msg on line #{ @line or @traverseChildren -> it.line }"
107107
108- # Defines delegaters .
108+ # Defines delegators .
109109 delegate : !(names , fn ) ->
110110 for let name in names
111111 @[name ] = -> fn .call this , name , it
Original file line number Diff line number Diff line change @@ -436,17 +436,6 @@ until them.1 then them.push((x, y) --> x + y)
436436eq 5 them .1 (2 ) 3
437437
438438
439-
440- ### IIFE Scoping
441- # IIFE constructions under `for` auto-capture the loop variables.
442- fs = for let a , i in [1 2 ]
443- for let b from 3 to 4
444- let i = i +5
445- -> i + a + b
446- sums = [f ! for f in flatten fs ]
447- eq sums .1 , 10
448- eq sums .2 , 11
449-
450439### Post-`for` chains
451440eq "#{
452441 [a * b * c * d \
You can’t perform that action at this time.
0 commit comments