I am trying to make a core java class implement an interface. I am trying something along the lines of:
(extend-protocol clojure.lang.Seqable
java.lang.Integer
(seq [this] (seq (str this))))
but this does not seem to work because Seqable is just an interface and not a protocol.
Is it possible to make (seq 123) work? how was seq implemented for java.lang.Strings?
proxy also does not seem capable of doing this.
I know I must be missing somethnig really obvious here.