Hi Itay,
The only decomposable object which is not a collection (as far as I
know) is a String:
(seq "hello")
;=> (\h \e \l \l \o)
But usually that's not what you want if you're traversing a data
structure. If you're interacting with Java code that returns
Iterators, Enumerables, or some weird
Hi,
I am trying to write a function that recursively traverses a given
object - applying a function to each node. Something along these
lines:
(defn traverse [f os]
(f os)
(when (coll? os)
(doseq [o os]
(traverse f o
Although this fragment seems to be doing the job, I am not s