Clojure lang

422 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
422
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Clojure lang

  1. 2. char? <ul><li>(println (char? 1)) </li></ul><ul><li>(println (char? a)) </li></ul><ul><li>Output: </li></ul><ul><li>false </li></ul><ul><li>true </li></ul>
  2. 3. format <ul><li>(println (format &quot;%x %x %x&quot; 10 11 12)) </li></ul><ul><li>Output: </li></ul><ul><li>a b c </li></ul>
  3. 4. char-array <ul><li>(def x (char-array [a b c])) </li></ul><ul><li>(println x) </li></ul><ul><li>Output: </li></ul><ul><li>#<char[] [C@456dfa45> </li></ul>
  4. 5. chars <ul><li>(def x (char-array [a b c])) </li></ul><ul><li>(println (chars x)) </li></ul><ul><li>Output: </li></ul><ul><li>#<char[] [C@456dfa45> </li></ul>
  5. 6. doubles <ul><li>(def x (double-array [1 2 3])) </li></ul><ul><li>(println (doubles x)) </li></ul><ul><li>Output: </li></ul><ul><li>#<double[] [D@7d5718f2> </li></ul>

×