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
bug

Comments

@clkao
Copy link
Contributor

@clkao 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 in 309e87f Dec 25, 2012
@satyr
Copy link
Contributor

@satyr 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 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

@vendethiel vendethiel commented Jul 31, 2013

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 Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants