Comment Comment by jules You can do that, but it's more elegant if you define a functional stateful transducer analogous to scanl for lists. parent jules 12 years ago