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:
23
bitchx-docs/6_Functions/remw
Normal file
23
bitchx-docs/6_Functions/remw
Normal file
@@ -0,0 +1,23 @@
|
||||
Synopsis:
|
||||
$remw(<word> <word list>)
|
||||
|
||||
Technical:
|
||||
This function returns the input list with the first occurrence of the
|
||||
given word removed.
|
||||
|
||||
Practical:
|
||||
This function is probably most useful in text parsing within a script.
|
||||
Because it only removes the first occurrence of the given word, and not
|
||||
all of them, it should probably be used in conjunction with $uniq() to
|
||||
be truly effective.
|
||||
|
||||
Returns:
|
||||
input list with first occurrence of given word removed
|
||||
|
||||
Examples:
|
||||
$remw(two one two three) returns "one three"
|
||||
$remw(two one two three two one) returns "one three two one"
|
||||
|
||||
See Also:
|
||||
remws(6); uniq(6)
|
||||
|
||||
Reference in New Issue
Block a user