Skip to content
angerangel edited this page Mar 19, 2013 · 1 revision

USAGE

   FIND series value /part length /only /case /any /with wild /skip size /last /reverse /tail /match

DESCRIPTION

Searches for a value; for series returns where found, else none.

FIND is an action value.

ARGUMENTS

  • series (series! gob! port! bitset! typeset! object! none!)
  • value (any-type!)

REFINEMENTS

  • /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}
] ]
Clone this wiki locally