This commit is contained in:
2026-05-13 11:01:18 -05:00
parent 9607c77939
commit f61348456b
6 changed files with 114 additions and 21 deletions

View File

@@ -24,12 +24,12 @@ void array_destroy(Array* a)
free(a);
}
size_t array_len(Array* a)
size_t array_len(Array const* a)
{
return a->n;
}
VALUE array_get(Array* a, size_t pos)
VALUE array_get(Array const* a, size_t pos)
{
if (pos >= a->n)
return create_value_nil();