Jump to content

Rebol Programming/maximum-of

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
MAXIMUM-OF series /skip size /case 

DESCRIPTION:

[edit | edit source]

Finds the largest value in a series

MAXIMUM-OF is a native value.

ARGUMENTS:

[edit | edit source]
  • series -- Series to search (Type: series)

REFINEMENTS:

[edit | edit source]
  • /skip -- Treat the series as records of fixed size
    • size -- (Type: integer)
  • /case -- Perform case-sensitive comparisons

SOURCE CODE

[edit | edit source]
maximum-of: native[
    "Finds the largest value in a series" 
    series [series!] "Series to search" 
    /skip "Treat the series as records of fixed size" 
    size [integer!] 
    /case "Perform case-sensitive comparisons"
]