[REBOL] Re: Commercial-quality REBOL programmers needed
From: joel:neely:fedex at: 17-Aug-2002 8:28
Hi, again, Dick,
[reffy--ulrich--net] wrote:
> What can Rebol do that is not just a scalar operation?
>
Not much, if you restrict yourself to the built-ins, but you can
define your own words that operate on non-scalar values. A few
cases already "in the box" include
>> blk: [2 4 6 8 9 7 5 3 1]
== [2 4 6 8 9 7 5 3 1]
>> print blk
2 4 6 8 9 7 5 3 1
>> minimum-of blk
== [1]
>> maximum-of blk
== [9 7 5 3 1]
but, at the risk of repetition, you can define more.
-jn-
--
; Joel Neely joeldotneelyatfedexdotcom
REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip
do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] {
| e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]