las3r
las3r copied to clipboard
Strange behaviour of dot operator with String's indexOf method.
-> (let [s "abcd"
index-of (. s indexOf)]
(index-of "c"))
5
-> (let [s "abcd"
index-of (get-property s "indexOf")]
(index-of "c"))
2
-> (let [s "abcd"]
(= (. s indexOf) (get-property s "indexOf")))
false