shift_function
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | shift_function [2007/08/06 21:25] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: shift_function.txt, | ||
+ | ======Synopsis: | ||
+ | $__shift__(< | ||
+ | |||
+ | ======Description: | ||
+ | The function takes only one argument, a variable name. The variable is | ||
+ | changed by removing its first [[what is a word|word]]. | ||
+ | returns that first word. | ||
+ | |||
+ | ======Practical: | ||
+ | This function can destructively remove the first word from an [[lval]]ue | ||
+ | ([[ASSIGN]] variable), or non-destructively remove the first word from | ||
+ | an rvalue (string of text). | ||
+ | creating LIFOs, FIFOs, or other types of queues. | ||
+ | |||
+ | ======Returns: | ||
+ | The first word, which is " | ||
+ | whichever applies. | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | assign foo blah booya | ||
+ | $shift(foo) | ||
+ | </ | ||
shift_function.txt · Last modified: 2007/08/06 21:25 by 127.0.0.1