Skip to content

Standard output

println

Prints a variable number of values into the standard output, separated by whitespace. Each collection type follows its own printing rule.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
(println "hello" "world")

(println [1 2 3 4])
(println (vector 1 2 3 4))

(println (list 1 2 3 4))

(println {"key" "value"})
(println (hash-map "key" "value"))

(println {:key1 (vector 1 2 3)} {:key2 (list 1 2 3 4)})
hello world

[1 2 3 4]
[1 2 3 4]

(1 2 3 4)

{"key" value}
{"key" value}

{:key1 [1 2 3]} {:key2 (1 2 3 4)}
See also

prn

Prints a variable number of values into the standard output, separated by whitespace. Each collection type follows its own printing rule. In addition, strings are escaped.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
(prn "hello" "world")

(prn [1 2 3 4])
(prn (vector 1 2 3 4))

(prn (list 1 2 3 4))

(prn {"key" "value"})
(prn (hash-map "key" "value"))

(prn {:key1 (vector 1 2 3)} {:key2 (list 1 2 3 4)})
"hello" "world"

[1 2 3 4]
[1 2 3 4]

(1 2 3 4)

{"key" "value"}
{"key" "value"}

{:key1 [1 2 3]} {:key2 (1 2 3 4)}
See also