1

Possible Duplicate:
Can I implement yield return for IEnumerable functions in VB.NET?

How to convert this Python code to VB? Is there any yield method in visual basic? Please help me.

 def f(x, y):
        for nx in range(max(0, x-1), min(3, x+2)):
            for ny in range(max(0, y-1), min(3, y+2)):
                yield (nx, ny)
Community
  • 1
  • 1
Cobold
  • 2,563
  • 6
  • 34
  • 51
  • [Not yet.](http://stackoverflow.com/questions/875587/can-i-implement-yield-return-for-ienumerable-functions-in-vb-net) – SLaks Jun 06 '11 at 21:49
  • Also, http://stackoverflow.com/questions/97381/yield-in-vb-net and http://stackoverflow.com/questions/2912851/what-is-the-equilivant-syntax-in-vb-net-for-yield-return – GSerg Jun 06 '11 at 21:51

0 Answers0