开发者

char representation clojure

How can I represent a char (character) in clojure?

Also I would like an example to test it using the char? function

(println (char? 1))
(println (char? (char 'a'))开发者_如何学C)


Use a backslash for representing an individual character. For instance:

(char? \a)

returns true

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜