Clojure 编程/示例/API 示例/序列运算符
外观
user=> (apply str (interpose "|" ["hi" "mum" "and" "dad"]))
"hi|mum|and|dad"
user=> (interleave [1 2 3] [:a :b :c])
(1 :a 2 :b 3 :c)
user=> (apply str (interpose " " (reverse (.split "I am cold" " "))))
"cold am I"
user=> (butlast "hello")
(\h \e \l \l)
(apply str (replace {\l ""} "hello world"))
=> "heo word"