require 'streams2'
class TestStream
include Stream
def initialize
@val=1
end
def hasNext
@val < 100
end
def next
tmp = @val
@val *= 2
tmp
end
end
back to test
(C) 1998-2017 Olaf Klischat <olaf.klischat@gmail.com>