Table of Contents

# $EPIC: leftw.txt,v 1.3 2007/03/02 02:32:04 jnelson Exp $

Synopsis:

$leftw(<count> <word list>)

Technical:

Practical:

Useful when you want to get the first few words in a word list.

Returns:

The first <count> words from <word list>.

Examples:

$leftw(2 hello there how are you?)         returns "hello there"
$leftw(-1 hello there bob)                 returns nothing
$leftw(7 hello there bob)                  returns "hello there bob"
$rightw(2 hello there how are you?)        returns "are you?"

History:

This function first appeared in “plus-2” (post-ircII, pre-EPIC)