T138error
Invalid index
A value is indexed when it cannot be, or with an index of the wrong type.
When it is reported
Only slices, arrays, maps and strings can be indexed, each with its own index type. Several values in brackets are only valid as type arguments on a generic call.
How to fix it
Index a collection with the right index type.
In your terminal and editor
$ piko explain T138Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeInvalidIndexing in Piko's source to see where it is reported.