REBOL Programming/find

USAGE:Edit

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

DESCRIPTION:Edit

Finds a value in a series and returns the series at the start of it.

FIND is an action value.

ARGUMENTSEdit

  • series -- (Type: series object port bitset)
  • 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)
  • /match -- Performs comparison and returns the tail of the match.
  • /tail -- Returns the end of the string.
  • /last -- Backwards from end of string.
  • /reverse -- Backwards from the current position.

SOURCE CODEEdit

find: native[
    {Finds a value in a series and returns the series at the start of it.} 
    series [series! object! port! bitset!] 
    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!] 
    /match {Performs comparison and returns the tail of the match.} 
    /tail "Returns the end of the string." 
    /last "Backwards from end of string." 
    /reverse "Backwards from the current position."
]
Last modified on 27 October 2012, at 22:08