Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added len() function #147

Merged
merged 15 commits into from
May 28, 2024
Prev Previous commit
Next Next commit
fix: stdlib/array len() issue.
Almas-Ali committed May 28, 2024
commit 49d005c4e12257a8a5be55429b163d8be06363fd
2 changes: 1 addition & 1 deletion stdlib/array.rn
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ class Array {
fun map(func) {
new_elements = []

for i = 0 to this.len() {
for i = 0 to this.__len__() {
arr_append(new_elements, func(arr_get(this.list, i)))
}