Command Reference : String and Date Function Reference
  
 
@winterleave
Syntax: @winterleave(str_list1, str_list2[, count1, count2])
Argument 1: string list, str_list1
Argument 2: string list, str_list2
Argument 3: number, count1
Argument 4: number, count2
Return: string list
Interleaves str_list1 with str_list2, according to the pattern specified by count1 and count2. The default uses counts of one.
Example:
@winterleave("A B C", "1 2 3")
interleaves “A B C” with “1 2 3” to produce the string list “A 1 B 2 C 3”.
@winterleave("A B C", "1 2 3 4 5 6")
interleaves “A B C” with “1 2 3 4 5 6”, returning the string list “A 1 B 2 C 3 “” 4”. Since there are more elements in the second string, empty strings (“”) are inserted when the elements of the first string run out.
Alternately, you may specify a count pattern to control the spacing of elements:
@winterleave("A B C", "1 2 3 4 5 6", 1, 2)
This command combines one element of the first string for every two elements of the second string, returning “A 1 2 B 3 4 C 5 6”.
See also @wcross.