Closed trptcolin closed 9 years ago
Good catch! I'm playing around with it a little now, and it looks like the issue is that the Java String method codePointAt
returns an Integer, not a Long. Seems like I could fix this by changing the code-point-of
implementation for java.lang.Long to be for java.lang.Number instead. Interestingly, clojure.core/char
works with floating-point numbers too -- it just rounds them off, so (accidentally) opening up the possibility of using a floating-point number as an argument to code-point-of
doesn't seem to break anything.
Yeah java.lang.Number
seems good to me.
char-seq
doesn't seem to work for me. This is on Clojure 1.6, Java 1.7.Adding a
defmethod
tocode-point-of
forjava.lang.Integer
fixes the issue for me locally.