angerangel edited this page Jan 3, 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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.