Table of Contents

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

Synopsis:

$insertw(<index> <word> <word list>)

Technical:

Practical:

Use this function when you need to insert a word into a word list and you have a specific place in mind for it. If you use an index of 0, then it will return the arguments just as you passed them, with any spaces between <word> and <word list> included. This is similar to the $unshift() function.

Returns:

<word list> with <word> inserted as the <index>th word.

Examples:

$insertw(1 blah hi there bob) returns “hi blah there bob”

History:

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