User Tools

Site Tools


rightw

Differences

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

Link to this comparison view

rightw [2007/03/02 02:32] (current)
Line 1: Line 1:
 +# $EPIC: rightw.txt,​v 1.4 2007/03/02 02:32:04 jnelson Exp $
 +======Synopsis:​======
 +$__rightw__(<​count>​ <word list>)
 +
 +======Technical:​======
 +   * If the <​count>​ argument is omitted the empty string is returned.
 +   * If the <​count>​ argument is less than 1, the empty string is returned.
 +   * This function returns the last <​count>​ words from <word list>.
 +   * Remember that <word list> is a list of [[what is a word|words]].
 +
 +======Practical:​======
 +Useful when you want to get the last few words in a word list.
 +
 +======Returns:​======
 +The last <​count>​ words from <word list>.
 +
 +======Examples:​======
 +<​file>​
 +$rightw(2 hello there how are you?)         ​returns "are you?"
 +$rightw(-1 hello there bob)                 ​returns nothing
 +$rightw(7 hello there bob)                  returns "hello there bob"
 +</​file>​
 +
 +======History:​======
 +This function first appeared in "​plus-2"​ (post-ircII,​ pre-EPIC)
  
rightw.txt ยท Last modified: 2007/03/02 02:32 (external edit)