Hacker News new | ask | show | jobs
by cgrand-net 2783 days ago
Flatten is a steam-roller and should be used wisely: it recursively flatten a sequential collection. Most of the time this is not what you want. Most of the rest of the time when you think that’s what you want it’s a code smell telling you that the shape of your items has gone out of control. And there’s the rare occurrence where you can really use it.
1 comments

Oops, indeed. Didn’t realize that Clojure flatten is recursive.