Menu ▾ ▴

#5801 make_array(hashed, ...) additional arguments are a mess

None
open
nobody
5
3 days ago
3 days ago
No

To create a hash table, one says make_array(hashed, ...) where ... indicates the number of dimensions. However there's a bit of strangeness around that.

make_array(hashed, 1) creates a 1-dimensional hash table. OK so far. However make_array(hashed, 2) also creates a 1-d hash table, not 2-d. To create a 2-d hash table, one says make_array(hashed, 1, 1).

Probably should restrict the arguments to exactly one integer, which indicates the number of indices.

There's related stuff about 1-d vs multi-dimensional, see bug #5800.

Discussion


Log in to post a comment.