Hi Ladislav,
Except - doesn't work the same as SUBTRACT unless it's used as an infix:
>> bop - [3 2 1] [1 1 1]
== [-3 -2 -1]
I thought of providing special processing to switch SUBTRACT for - ,
but thought it would be more fun to use the operators as infixes.
Catch you later,
Eric
==== You wrote:
Nice try, but it is only a more complicated version of:
bop: func [
{returns the results of operating on elements of b with those of bb -
last element of bb will be reused if necessary}
'op [word!] "name of function to use"
b [block!]
bb
/local r
][
op: get in system/words op
r: copy []
if not block? bb [bb: reduce [bb]]
while [not tail? b] [
append r op first b first bb
b: next b
if 1 < length? bb [bb: next bb]
]
r
]
>> bop / [4 2] 2
== [2 1]
, which is a pure prefix matter ;-)