Strange Loops Banner
2010-03-26

Quick Clojure: Understanding Dot Dot Macro

user> (. "hello " trim)
"hello"
user> (. (. "hello " trim) toUpperCase)
"HELLO"
user> (.. "hello " trim toUpperCase)
"HELLO"
user> (.. "hello " trim toUpperCase length)
5
user> (.. "hello " trim toUpperCase (concat " world"))
"HELLO world"