On line 4, the lazy-seq breaks the recursion, preventing stack overflow on deeply nested structures. The other improvement is online 2.
It should be
On line 4, the lazy-seq breaks the recursion, preventing stack overflow on deeply nested structures. The other improvement is on line 2.