forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Find
angerangel edited this page Mar 19, 2013
·
1 revision
FIND series value /part length /only /case /any /with wild /skip size /last /reverse /tail /match
Searches for a value; for series returns where found, else none.
FIND is an action value.
- series (series! gob! port! bitset! typeset! object! none!)
- value (any-type!)
-
/part -- Limits the search to a given length or position
- length (number! series! pair!)
- /only -- Treats a series value as only a single value
- /case -- Characters are case-sensitive
- /any -- Enables the * and ? wildcards
-
/with -- Allows custom wildcards
- wild -- Specifies alternates for * and ? (string!)
-
/skip -- Treat the series as records of fixed size
- size (integer!)
- /last -- Backwards from end of series
- /reverse -- Backwards from the current position
- /tail -- Returns the end of the series
- /match -- Performs comparison and returns the tail of the match
#SOURCE
find: make action! [ [
{Searches for a value; for series returns where found, else none.}
series [series! gob! port! bitset! typeset! object! none!]
value [any-type!]
/part "Limits the search to a given length or position"
length [number! series! pair!]
/only "Treats a series value as only a single value"
/case "Characters are case-sensitive"
/any "Enables the * and ? wildcards"
/with "Allows custom wildcards"
wild [string!] "Specifies alternates for * and ?"
/skip "Treat the series as records of fixed size"
size [integer!]
/last "Backwards from end of series"
/reverse "Backwards from the current position"
/tail "Returns the end of the series"
/match {Performs comparison and returns the tail of the match}
] ]