Task

Create a function that returns the maximum value in a provided set of values,

where the number of values may not be known until run-time.




rebol [
    Title: "Maximum Value"
    URL: http://rosettacode.org/wiki/Maximum_Value
]
 
max: func [
	"Find maximum value in a list."
	values [series!] "List of values."
] [
	first maximum-of values 
]
 
print ["Max of"  mold d: [5 4 3 2 1]  "is"  max d]
print ["Max of"  mold d: [-5 -4 -3 -2 -1]  "is"  max d]