[REBOL] Re: to-offset
From: greggirwin:mindspring at: 13-Apr-2002 12:20
Hi Romano, <<> to-index: func [pos [pair!] cols [integer!] ] [ > pos/y - 1 * cols + pos/x > ] >> to-index 0x0 3== -3 This should be 1, or not?>>Not. :) The lowest pair bound you use should be 1x1 (no bounds checking in the above sample function). I don't like 0 to n-1 numbering. --Gregg