Just FYI, you may be interested in transducers instead of stateful functions, e.g., if you want to squeeze out performance. See: GitHub - JuliaFolds/Transducers.jl: Efficient transducers for Julia / Clojure - Transducers
Just FYI, you may be interested in transducers instead of stateful functions, e.g., if you want to squeeze out performance. See: GitHub - JuliaFolds/Transducers.jl: Efficient transducers for Julia / Clojure - Transducers