angerangel edited this page Jan 7, 2013 · 1 revision

USAGE

   SELECT series value /part length /only /case /any /with wild /skip size /last /reverse

DESCRIPTION

Searches for a value; returns the value that follows, else none.

SELECT is an action value.

ARGUMENTS

  • series (series! port! map! 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

#SOURCE

select: make action! [  [
    {Searches for a value; returns the value that follows, else none.}
    series [series! port! map! 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"
] ]
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.