[REBOL] Re: More on expressions
From: sunandadh:aol at: 1-Feb-2003 13:56
> GIVEN: Three variables, A, B, and C which we'll assume have
> been set to numeric values.
> CHALLENGE: Write an expression whose value is the median of the
> CONSTRAINT: Just to make it iteresting ;-) the expression MAY NOT
> use any of these REBOL words/functions:
> sort if either first second third
> nor any path expressions.
I'll have a go. The median is the largest left after you remove the largest,
pick maximum-of head remove maximum-of reduce [a b c] 1