Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Nested blocks - retrieving and setting with variables

From: chalz:earthlink at: 28-Sep-2004 2:25

>>>>min(mtx[si][ti + 1] + 1, mtx[si + 1][ti] + 1, mtx[si][ti] + cost); > Carl Sassenrath has decided (at the Collaboration Conference), that we > will be able to use: > > min min mtx/(si)/(ti + 1) + 1 mtx/(si + 1)/(ti) + 1 mtx/(si)/(ti) + > cost > > how would that work for you?
I think that would be incredible. Ever since I started working in REBOL, accessing and manipulating values within a series have always been problems for me. I'm so used to the array[index] format. 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. Anyways, that's interesting news. And I hadn't thought of using 'min min'.. saves me the hassle of reduce and pick.. Like I said, I'm rusty. Thanks all. --Charles