T135error

Built-in function misused

A built-in function such as len, cap, append, min or max is called incorrectly.

The call has the wrong number of arguments, or arguments of a type the function does not accept, such as len on a number or min with mixed types.

Call the function as Go does.

$ piko explain T135

Build 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 CodeBuiltinFunctionError in Piko's source to see where it is reported.