[REBOL] Re: Nested blocks - retrieving and setting with variables
From: lmecir::mbox::vol::cz at: 28-Sep-2004 13:53
Charles napsal(a):
>> <>min min mtx/(si)/(ti + 1) + 1 mtx/(si + 1)/(ti) + 1 mtx/(si)/(ti) +
>> cost
>>
....
>> <> I think that would be incredible...
>
....
>> <>Hah, course, there's
>> another language, a game language, I've toyed with which allows
>> access such
>> as:
>> array[1..$]
>> array[3..$-5]
>>
>> etc, where '$' represents the end of the array, and '..' is, in case you
>> haven't guessed, "all values between the specified values,
>> inclusive". So
>> [1..$] with an array that contains 10 values would be all values from
>> array[1] to array[10]. This is most useful for working backwards or
>> selecting portions of an array (data = source[4..$]; tag
>> source[$-3..$];
>> and so forth). That spoiled me quickly.
>
this is a different cause. Maxim wanted to have such a syntax too, but a
Rebol dialect:
copy-array [-3 - tail head - 2]
looks better to me. In case you need it there is a lot of people able to
write such a dialect including myself. Rebol ask for more.
-L