开发者

char representation clojure

开发者 https://www.devze.com 2023-04-11 16:13 出处:网络
How can I represent a char (character) in clojure? Also I would like an example to test it using the char? function

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

精彩评论

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