Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
22
bitchx-docs/6_Functions/uniq
Normal file
22
bitchx-docs/6_Functions/uniq
Normal file
@@ -0,0 +1,22 @@
|
||||
Synopsis:
|
||||
$uniq(<list of words>)
|
||||
|
||||
Technical:
|
||||
This function takes an arbitrary list of arguments and returns all that
|
||||
are unique. The output is in the same order as the input, using the
|
||||
first occurrence of each word.
|
||||
|
||||
Practical:
|
||||
This function is useful for weeding out duplicates from a list of words
|
||||
(such as a list of nicknames for a tabscript).
|
||||
|
||||
Returns:
|
||||
list of unique words from input list
|
||||
|
||||
Examples:
|
||||
$uniq(one two three two one) returns "one two three"
|
||||
$uniq(blah blah blah) returns "blah"
|
||||
|
||||
See Also:
|
||||
remw(6); remws(6);
|
||||
|
||||
Reference in New Issue
Block a user