Table of Contents

# $EPIC: pop_function.txt,v 1.6 2007/02/17 18:41:08 jnelson Exp $

Synopsis:

$pop(<variable name>)

Technical:

Practical:

Pop removes the last word from a word list, or from a word list stored in a variable. It reverses the action of $push(). If you are implementing a FIFO, you can unshift words onto the front of a variable and pop them off the back.

Returns:

The last word of <word list> or of $<variable name>.

Examples:

$pop(one two three) returns “three” assign booya one two three four $pop(booya) returns “four”, $booya is now “one two three”.

History:

This function first appeared in “+7” (post-ircII, pre-EPIC)