feat(operator): add operator_index_get/set to Array and Slice with generic monomorphization

This commit is contained in:
2026-06-11 01:28:59 +03:00
parent aa2d6f9632
commit a4f25bc737
3 changed files with 74 additions and 6 deletions
+8
View File
@@ -50,4 +50,12 @@ func Array_Drop<T>(self: *Array<T>) {
Array_Free<T>(self);
}
func Array_operator_index_get<T>(self: *Array<T>, idx: uint) -> T {
return Array_Get<T>(self, idx);
}
func Array_operator_index_set<T>(self: *Array<T>, idx: uint, value: T) {
Array_Set<T>(self, idx, value);
}
}