3 ms·
This sounds fishy to me too... Have you actually consulted anyone, with more Clojure experience, how to avoid the need for `(map vec <thing>)` all over the plac
by onetom 6y ago
This sounds fishy to me too...
Have you actually consulted anyone, with more Clojure experience, how to avoid the need for `(map vec <thing>)` all over the place?
I would guess you were working with deeply nested data structures and you had to do deep updates, while strictly maintaining the vector data-type.
That's indeed kinda sucky to do just using vanilla `clojure.core`, indeed, but then there is https://github.com/redplanetlabs/specter https://github.com/redplanetlabs/specter for that.
Alternatively, instead of dealing with deep nesting, you should probably work with namespaced keys, which allow flattening your data and suddenly a lot of transformations become radically simpler and such a system is more extensible too...
- ashtonkem 6y agoYour attitude is extremely patronizing.