string-join

Name

string-join -- Join some strings

Type: function

Synopsis

string-join( delim list, string);

Arguments

delim

The delimiter to separate elements of list.

list

A proper list of <string> instances.

Return Values

string

An instance of <string>.

Description

This function does the reverse of string-split and joins together the elements of list with occurrences of delim in between. delim may be a character or a string.

(string-join #\. '("foo" "bar" "baz")) "foo.bar.baz"

(string-join ".." '("hi" "there" "bob")) "hi..there..bob"