Site Tools


unsplit

Differences

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

Link to this comparison view

unsplit [2007/03/02 02:32] (current)
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 (external edit)