[REBOL] Re: Cunning use of [], () & {} in R# and in future? Rebol versions?
From: mmastroianni::lepcorp::com at: 17-Oct-2003 11:22
Hi all -
This thread reminds me of some of the
very nice MATLAB notation for referencing
matrix or array elements:
A(1:10) - elements 1 thru 10
A(:,5:10) - all rows, only columns 5 thru 10
A(5:10,:) - all columns, only rows 5 thru 10
A(:) - all elements
A' - all elements transposed (cols switched
with rows) dimension r x c becomes c x r
It might be nice to accommodate the two dimensional
idea as an enhancement; n-dimensional referencing
might be nice too...
A REBOL shorthand for block or series referencing
in this flavor might be very helpful -- at least
I think it would. On the other hand, I've got a
long way to go before I appreciate the subtleties
of REBOL ...
Mike
<SNIP>