Last modified on 13 November 2012, at 10:50

REBOL Programming/select

USAGE:Edit

SELECT series value /part range /only /case /any /with wild /skip size 

DESCRIPTION:Edit

Finds a value in the series and returns the value or series after it.

SELECT is an action value.

ARGUMENTSEdit

  • series -- (Type: series object port)
  • value -- (Type: any-type)

REFINEMENTSEdit

  • /part -- Limits the search to a given length or position.
    • range -- (Type: number series port)
  • /only -- Treats a series value as a single value.
  • /case -- Characters are case-sensitive.
  • /any -- Enables the * and ? wildcards.
  • /with -- Allows custom wildcards.
    • wild -- Specifies alternates for * and ? (Type: string)
  • /skip -- Treat the series as records of fixed size
    • size -- (Type: integer)

SOURCE CODEEdit

select: native[
    {Finds a value in the series and returns the value or series after it.} 
    series [series! object! port!] 
    value [any-type!] 
    /part "Limits the search to a given length or position." 
    range [number! series! port!] 
    /only "Treats a series value as 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!]
]