Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect nested loop expression #238

Closed
clkao opened this issue Dec 25, 2012 · 2 comments
Closed

incorrect nested loop expression #238

clkao opened this issue Dec 25, 2012 · 2 comments
Labels

Comments

@clkao
Copy link
Contributor

clkao commented Dec 25, 2012

res = for i in [1 to 10]
  [x] = [ z for z in [1 to 2] ]
  x + i

this returns an array of array, while the inner loop was just for looking something up rather than constructing another level of nested loops.

@gkz gkz closed this as completed in 309e87f Dec 25, 2012
@satyr
Copy link
Contributor

satyr commented Dec 26, 2012

What about:

res = for i to 9
  while 0 => while 0 =>  
  i

@gkz gkz reopened this Jan 12, 2013
@gkz gkz closed this as completed in 88910ee Jan 13, 2013
gkz added a commit that referenced this issue Jan 13, 2013
fix #238 - only check loop last element
@vendethiel vendethiel reopened this Jul 31, 2013
@vendethiel
Copy link
Contributor

reopening since it's still broken (a bit "deeper", but it indeed needs to work like makeReturn)

gkz added a commit that referenced this issue Apr 15, 2015
@gkz gkz closed this as completed Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants