Fork me on GitHub
#clojure-dev
<
2018-05-07
>
andy.fingerhut23:05:33

Has anyone written a data structure walker that traverses through possibly-nested collections, that converts non-Clojure lists, sets, maps, etc. into their Clojure persistent counterparts? I can imagine someone might have wanted to write such a function at a Java interop boundary, to avoid issues with hash being inconsistent with = between Clojure and non-Clojure collections (i.e., https://dev.clojure.org/jira/browse/CLJ-1372 )

andy.fingerhut23:05:25

I know that something like that should be fairly straightforward with clojure.walk/postwalk-replace -- I am mainly asking in case someone knows of something battle-tested and open source I could link to, vs. writing and testing one.