Skip to content

biiwide/ecloji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 

Repository files navigation

ecloji

So it appears that most Unicode characters can be used in Clojure symbols... The sky is the limit.

Samples

=> (def πŸŒ€ interleave)
#'user/πŸŒ€

=> (πŸŒ€ [1 2 3] ["a" "b" "c"])
(1 "a" 2 "b" 3 "c")

=> (defrecord πŸ‘€ [🏠 🏫 🏒 πŸ“ž πŸ“±])
user.πŸ‘€

=> (map->πŸ‘€ {:🏠 "123 Washington Ave." :🏫 "UofM Twin Cities" :🏒 "CoCo Minneapolis" :πŸ“ž "867-5309" :πŸ“± "555-5555"})
#user.πŸ‘€{:🏠 "123 Washington Ave.", :🏫 "UofM Twin Cities", :🏒 "CoCo Minneapolis", :πŸ“ž "867-5309", :πŸ“± "555-5555"}

=> (type πŸ‘€)
java.lang.Class

=> (.getName πŸ‘€)
"user.πŸ‘€"

Also of Interest

Unicode has many different groups of "digit" (base 10) glyphs. Java's Character class recognizes many of these as digits:

assertTrue( Character.isDigit('၅') );

Additionally, the Number classes appear to be able to parse them:

assertEquals( 1111, Long.valueOf("Ω‘Ω’Ω£") );

Even more fun is that Java doesn't even care if they are all from the same group of digits:

assertEquals( 12121212, Long.valueOf("ّْ১২၁၂12") );

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published