push_function
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | push_function [2007/03/23 16:39] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: push_function.txt, | ||
+ | ======Synopsis: | ||
+ | $__push__(< | ||
+ | |||
+ | ======Description: | ||
+ | This function appends a word to the end of < | ||
+ | is considered to be **one word**. | ||
+ | on, then the client will add double quotes around < | ||
+ | it to the variable! | ||
+ | |||
+ | You need to turn off [[xdebug]] dword to get the epic4 behavior! | ||
+ | |||
+ | ======Practical: | ||
+ | Push adds a new word to the end of $< | ||
+ | a variable containing a word list. It is equivalent to the following: | ||
+ | |||
+ | < | ||
+ | @ < | ||
+ | </ | ||
+ | |||
+ | This function is useful to append a word to the end of a word list, | ||
+ | which you might do to create a FIFO, LIFO, or other ordered queues. | ||
+ | reverse of __push__() is [[pop function|pop]]() and the inverse is | ||
+ | [[unshift function|unshift]](), | ||
+ | function|shift]](). | ||
+ | |||
+ | If < | ||
+ | then it is created automatically for you. | ||
+ | |||
+ | ======Returns: | ||
+ | The new value of $< | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $push(blah hello there) | ||
+ | </ | ||
+ | |||
+ | ======History: | ||
+ | This function first appeared in " | ||
+ | |||
push_function.txt · Last modified: 2007/03/23 16:39 by 127.0.0.1