Raynos / observ-array

An array containing observable values
MIT License
26 stars 4 forks source link

Allow value access by index #16

Closed Zolmeister closed 9 years ago

Zolmeister commented 9 years ago

Allows for access list elements by index

arr = observ-array([1,2,3])
arr[0] == 1
Raynos commented 9 years ago

I implemented this in the past but then removed it.

Your implementation is incorrect because you do not change, or remove indexes on arr when calling mutative methods.

Zolmeister commented 9 years ago

Indeed.