(. (. "hello " trim) toUpperCase) "HELLO" user> (.. "hello " trim toUpperCase) "HELLO" user> (.. "hello " trim …">

Strange Loops

No Matter Where You Go, There You Are

Quick Clojure: Understanding Dot Dot Macro

| Comments

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"