version 0.7.0

This commit is contained in:
Andreas Rumpf 2008-11-16 22:08:15 +01:00
commit 8b2a9401a1
185 changed files with 21451 additions and 24296 deletions

View file

@ -1,15 +1,13 @@
# Test the new iterators
iterator xrange(fromm, to: int, step = 1): (a: int) =
a = fromm
iterator xrange(fromm, to: int, step = 1): int =
var a = fromm
while a <= to:
yield a
inc(a, step)
iterator interval[T](a, b: T): (x: T)
iterator interval[T](a, b: T): (x: T) =
x = a
iterator interval[T](a, b: T): T =
var x = a
while x <= b:
yield x
inc(x)