I am fairly new to functional programming. I am learning clojure. I was trying out a few commands. Some of them work fine. I got this weird one below:
(read-string "1 2 3")
;;this ouputs
1
(read-string "[1 2 3]")
;;this ouputs
[1 2 3]
I am wondering why in the first one it doesn't output the complete string. but does output it in the second one. 1 2 3
Any reason for this?
In case you are wondering, i was doing this on command line. It shouldn't really matter.