wubbie a écrit :
> Hello,
>
> How can I do this? Do we have a function that checks if
> it's a char or digit?
>
> (digits "a2c3")
> -> "23"
Many predicates on characters are defined in java.lang.Character:
http://java.sun.com/javase/6/docs/api/java/lang/Character.html

user=> (apply str (filter #(Character/isDigit %) "a2c3"))
"23"

-- 
Professional: http://cgrand.net/ (fr)
On Clojure: http://clj-me.blogspot.com/ (en)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to