I implemented a type for defining arbitrary lazy sequences that performs well, but the implementation is so trivial that I'm not sure if it's worth making a package

I think so but it seems opening PR somewhere will be better. See this topic, it looks similar: Julia equivalence of Haskells unfoldr

2 Likes