Site Tools


unsplit
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


unsplit [2007/03/02 02:32] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $EPIC: unsplit.txt,v 1.3 2007/03/02 02:32:04 jnelson Exp $
 +======Synopsis:======
 +$__unsplit__(<separator> <wordlist>)
 +
 +======Technical:======
 +The <separator> argument is a [[what is a word|dword]] which is different
 +from most function arguments.  This is so you can use a space as your 
 +<separator>.
 +
 +The wordlist is considered to strictly be a list of [[what is a word|dwords]].
 +
 +The function returns a list of [[what is a word|uwords]] with each original
 +dword separated by <separator>.
 +
 +======Practical:======
 +This function is useful to "launder" a dword list into a uword list, 
 +specially if your <separator> is a space.
 +
 +Useful for presenting strings splitted by split, or for returning
 +wordlists in specific formats.
 +
 +======Returns:======
 +The list of words separated by <separator>
 +
 +======Examples:======
 +$unsplit(: a b c)            returns "a:b:c"
  
unsplit.txt · Last modified: 2007/03/02 02:32 by 127.0.0.1