Lazy sequences in Hy – redux

Not long ago I wrote about mathematical patterns with Hy. One central point of the post was lazy sequences that only evaluated as many elements as requested and no more. The code presented covered the basics, but several features were lacking. Namely finite sequences, calculating length and accessing negative indexes. This post builds on previous one and addresses the most glaring problems.

Continue reading