Just noticed something interesting about count
:
$ clojure
Clojure 1.9.0
user=> (= 1 (count " "))
true
user=> (= 1 (count "●"))
true
user=> ^D
$ joker
Welcome to joker v0.12.5. Use EOF (Ctrl-D) or SIGINT (Ctrl-C) to exit.
user=> (= 1 (count " "))
true
user=> (= 1 (count "●"))
false
Looks like count
returns the number of bytes in the passed string rather than the number of characters:
user=> (count "●")
3