In your example, that would be something like
    
    
    for i in 0..2:
      let w = (proc(i: int): auto = proc(): string = books[i].title)(i)
      titleReaders.add(w)
    
    
    Run

Reply via email to