cl-cookbook icon indicating copy to clipboard operation
cl-cookbook copied to clipboard

Add example on how to join list of strings

Open MichaelAnckaert opened this issue 2 years ago • 2 comments

This PR includes an example on how to join a list of strings to a string, delimited with a character.

* (join '("foo" "bar" "baz") #\-)
"foo-bar-baz"

MichaelAnckaert avatar Apr 19 '22 10:04 MichaelAnckaert

consider using FORMAT as per either mine or R. Joswig's answer here: https://stackoverflow.com/questions/8830888/whats-the-canonical-way-to-join-strings-in-a-list

pnathan avatar Apr 20 '22 06:04 pnathan

Hi, thanks for sending a PR. I wish we could use shorter examples, especially when we have str:join or format.

vindarel avatar Apr 20 '22 14:04 vindarel