[racket] Implementing an equal? method for a class

From: Danny Yoo (dyoo at hashcollision.org)
Date: Sun Jul 29 19:19:44 EDT 2012

On Sun, Jul 29, 2012 at 6:07 PM, Matthias Felleisen
<matthias at ccs.neu.edu> wrote:
> For 81 slots, I'd actually use a (define b (make-vector 81 0)) instead and use an access polynomial. I am almost certain that it is faster.

I'm unfamiliar with the term 'access polynomial'.  Would it be
accurate to say that it's a function f:

   f: (number number -> number)

such as

    (define COLUMN-LENGTH 9)
    (define (f row col) (+ (* row COLUMN-LENGTH) col))

allows us to treat the flat vector as if it were a two-dimensional
structure, by translating (row,col) into offsets?

Posted on the users mailing list.