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/restw
Normal file
23
bitchx-docs/6_Functions/restw
Normal file
@@ -0,0 +1,23 @@
|
||||
Synopsis:
|
||||
$restw(<count> <word list>)
|
||||
|
||||
Technical:
|
||||
The $restw() function returns the given list with the specified number
|
||||
of words at the beginning of the input list removed.
|
||||
|
||||
Practical:
|
||||
This function is mostly useful when you know you want to always remove
|
||||
the first few words from an input string, regardless of what they are,
|
||||
and when there are a varying number of total arguments.
|
||||
|
||||
Returns:
|
||||
input list with given number of leading words removed
|
||||
|
||||
Examples:
|
||||
$restw(2 hello there how are you?) returns "how are you?"
|
||||
$restw(-1 hello there how are you?) returns nothing
|
||||
$restw(6 hello there how are you?) returns nothing
|
||||
|
||||
See Also:
|
||||
leftw(6); rightw(6)
|
||||
|
||||
Reference in New Issue
Block a user