If you want to easily convert to a closure my package 
[slicerator](https://github.com/beef331/slicerator) contains a `asClosure` 
macro which would turn the above into:
    
    
    var input = asClosure "ABCDEFGABF".items
    for c in input:
     echo c
    
    
    Run

Reply via email to