Skip to content

Commit

Permalink
修正 clojure.string/join 函数
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzworks committed Nov 4, 2012
1 parent 2c33841 commit 6bda77e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clojure.string/join.rst
Expand Up @@ -13,8 +13,12 @@ join
user=> (def fruit ["apple" "banana" "cherry"])
#'user/fruit

; 不使用 separator

user=> (clojure.string/join fruit)
"applebananacherry"

; 使用 ", " 作为 separator

user=> (clojure.string/join ", " fruit)
"apple, banana, cherry"

0 comments on commit 6bda77e

Please sign in to comment.