|
|
|
if you get something from x[6j] it's mapping.
Niki Spahiev |
06/03/23 - 2:08 pm | #
|
|
Yeah - good point.
Fuzzyman |
Homepage |
06/03/23 - 2:20 pm | #
|
|
It's possible to implement a mapping type that doesn't rely on hashing the keys - for example, a binary search tree.
I think your best bet is just relying on the fact that sequence types won't work if you pass them something that isn't an integer. (Although if someone's using a custom sequence type that does something different in that case (fairly pathological situation), you'll still have a problem.)
xtian |
06/03/23 - 3:30 pm | #
|
|
|
Commenting by HaloScan
|