E12001 Stdlib Errors

Stdlib

maps.%s() requires a map argument, got an array

When this occurs

Using non-hashable type (array, map, struct) as map key

Example error message

error[E12001]: map key must be a hashable type, got ARRAY

How to fix

Map keys must be hashable types: `string`, `int`, `float`, `bool`, or `char`. Arrays and maps cannot be keys.

Related errors

No related errors.