corfilter
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | corfilter [2007/03/02 02:32] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: corfilter.txt, | ||
+ | ======Synopsis: | ||
+ | $[[corfilter]](< | ||
+ | |||
+ | ======Description: | ||
+ | The < | ||
+ | than most functions. | ||
+ | |||
+ | This function is the reverse operation of [[cofilter]], | ||
+ | complementary operation of [[corpattern]]. | ||
+ | |||
+ | This function is closely related to [[rfilter]], | ||
+ | wildcard patterns in a word list that do not match a literal string. | ||
+ | |||
+ | All of the cor* functions take a literal string, and two variable names. | ||
+ | The first variable should contain a word list of wildcard patterns, and | ||
+ | the second variable should contain a word list. The string is matched | ||
+ | against each of the patterns in the first list, and depending on the result, | ||
+ | the corresponding word in the second list is included or excluded in the | ||
+ | resturn value. | ||
+ | |||
+ | The [[corfilter]] function returns all those words in $< | ||
+ | correspond in position to those patterns in $< | ||
+ | match the < | ||
+ | |||
+ | Parsing ends whenever the shorter of the two word lists runs out of words. | ||
+ | Therefore, the two word lists should have the same number of words. | ||
+ | |||
+ | The literal < | ||
+ | if the word contains spaces. | ||
+ | of the string for the purposes of matching. | ||
+ | |||
+ | ======Returns: | ||
+ | The words from $< | ||
+ | that are not matched by < | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | @ friends = [ooga!bob@*.foo.com *!tom@*.com] | ||
+ | @ levels | ||
+ | $corfilter(ooga!bob@lace.foo.com friends levels) | ||
+ | $corfilter(hype!tom@bar.com friends levels) | ||
+ | </ | ||
corfilter.txt · Last modified: 2007/03/02 02:32 by 127.0.0.1