Use interpose instead of interleave to add spaces between words.

This commit is contained in:
Alex Robbins 2011-02-13 19:21:15 -06:00
parent 8450a39d3d
commit a395f47b86

View File

@ -107,14 +107,12 @@
"then comes %s, " "then comes %s, "
"then comes %s with the baby carriage") "then comes %s with the baby carriage")
a b c) a b c)
'(trim '(apply str
(apply str (interpose " "
(interleave
(apply list (apply list
first-name first-name
last-name last-name
(interleave (repeat "aka") aliases)) (interleave (repeat "aka") aliases))))
(repeat " "))))
'{:original-parts full-name '{:original-parts full-name
:named-parts {:first first-name :last last-name}} :named-parts {:first first-name :last last-name}}
'(str street-address ", " city ", " state) '(str street-address ", " city ", " state)