Added _indexOf

This commit is contained in:
2023-02-12 14:32:26 +00:00
parent ab2cd5dc93
commit 8653a2663f
4 changed files with 59 additions and 7 deletions

View File

@@ -155,6 +155,15 @@ import compound;
}
//test indexOf
{
var a = [1, 2, 42, 3];
//results are zero-indexed
assert a.indexOf(42) == 2, "_indexOf failed";
}
//test map
{
//test map with toy functions