Anyone in here got any advice for an Interop n00b (me) on how to use the isISOControl static method on the Java Character class..?
I have tried:
(Character/isISOControl char)
(.isISOControl char)
(Character.isISOControl char)
None of which work, albeit with different errors, but I don't get why after all (Integer/parseInt "3") just works :-(What's not working for you? My little REPL experiment seems to behave as expected:
user=> (Character/isISOControl \u0011)
true
user=> (Character/isISOControl 23)
true
user=> (Character/isISOControl "nope")
Execution error (IllegalArgumentException) at user/eval7 (REPL:1).
No matching method isISOControl found taking 1 args
Thanks - I was being a doofus and passing a string rather than a char facepalm
I have since fixed it by writing a simple function to do the test on any individual char and then using map on a string.
Ah, we've all been there (maybe me more than others!). I'm glad you're sorted out!
(yes I have Googled around a bit, I admit defeat, my Google-Fu is weak)