fix use of Ox.map, Ox.loop
This commit is contained in:
parent
9a7e86dceb
commit
f97352ee61
6 changed files with 10 additions and 10 deletions
|
|
@ -245,7 +245,7 @@ Ox.loop <f> For-loop, functional-style
|
|||
step <n> Step value
|
||||
fn <f> Iterator function
|
||||
i <n> Counter value
|
||||
> Ox.loop(10, function(i) { return i != 4; })
|
||||
> Ox.loop(10, function(i) { i == 4 && Ox.break() })
|
||||
4
|
||||
> Ox.loop(0, 3, 2, function() {})
|
||||
4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue