@veer66 Can't you just take advantage of the Unicode number mappings?

@loke Like this?

(defn num-ch-tha->ara [c]
(if (and (<= (.compareTo \๐ c) 0)
(>= (.compareTo \๙ c) 0))
(-> c
(- 3616)

@veer66 No. I mean to use the Unicode API to get the numerical value of a character. I don't know the Clojure API, but in SBCL I can use (sb-unicode:numeric-value #\๑) which results in 1.

Sign in to participate in the conversation

Fast, secure and up-to-date instance, welcoming everyone around the world. Join us! 🌍
Up since 04/04/2017. ✅

Why should you sign up on mstdn.io?

This instance is not focused on any theme or subject, feel free to talk about whatever you want. Although the main language is english, we accept every single language and country.

We're connected to the whole ActivityPub fediverse and we do not block any foreign instance nor user.

We do have rules, but the goal is to have responsible users.

The instance uses a powerful server to ensure speed and stability, and it has good uptime. We follow state-of-the-art security practices.

Also, we have over 300 custom emojis to unleash your meming potential!

Looking for a Kpop themed instance? Try kpop.social