mio> xs = [1, 2, 3, 4]
===> list(1, 2, 3, 4)
mio> it = iter(xs)
===> ListIterator(list(1, 2, 3, 4))
mio> it next()
===> 1
mio> it next()
===> 2
mio> it next()
===> 3
mio> it next()
===> 4
A further iteration would result in:
mio> it next()
StopIteration:
--------------
next
ifFalse(
raise(StopIteration)
)
raise(StopIteration)
Note
Need to write lots of unit tests for this!
x = 1 .. 5 # a Range from 1 to 5
x = (1 .. 5) + 2 # a Range from 1 to 5 in increment of 2
$ mio
mio 0.0.6.dev
mio>
c = Continuation current()
print("foo")
c()
Example:
1 + 2 * 3
OLD:
1 +(2 *(3))
NEW:
1 +(2) *(3)
from foo import *
bar = from(foo) import(bar)