@mashingan Yes, I can convert the iterator to seq and all works. But it not the 
way I want. I hope the iterator is same as seq, like following code: 
    
    
    print collectz(1..5, @[toSeq(1..it)])
    print collectz(@[1,2,3], @[toSeq(1..it)])
    print collectz(countup(1,4), @[toSeq(1..it)])
    print collectz(x <- 1..5, @[toSeq(1..x)])
    print collectz(x <- @[1,2,3], @[toSeq(1..x)])
    print collectz(x <- countup(1,4), @[toSeq(1..x)])
    

Reply via email to