# Am I Missing Something? Getting Length of Array

**URL:** <https://in-thread.sonic-pi.net/t/am-i-missing-something-getting-length-of-array/3141>\
**Category:** Support, Help & Resources\
**Created:** [January 11, 2020, 4:21pm UTC](https://in-thread.sonic-pi.net/t/am-i-missing-something-getting-length-of-array/3141 "2020-01-11T16:21:37Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![ethancrawford](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@ethancrawford](https://in-thread.sonic-pi.net/u/ethancrawford)\
**Post date:** [October 19, 2021, 1:36pm UTC](https://in-thread.sonic-pi.net/t/am-i-missing-something-getting-length-of-array/3141/13 "2021-10-19T13:36:46Z")

</div>

> [@tjvigil66](#):
>
> Is there any reason why .count wouldn’t remain in Sonic Pi?

There is a possibility, however delayed, that one day the Sonic Pi language may be rewritten in another base language altogether.  
A key point to keep in mind is that we would give plenty of notice about such a thing.

The comments on the replies to the following topic may be useful:

> [@A little list cheatcode](https://in-thread.sonic-pi.net/t/a-little-list-cheatcode/6053):
>
> “Lists are immutable. You can’t just pick a single index and overwrite it.” Me: define :overwrite do |list, length, position, value| #empty return list outlist = (ring) #iterate through list tick\_reset :over length.times do #Is this the position that is supposed to be overwritten? if tick(:over) == (range 0, length)[position] #insert the desired value here outlist = outlist + (ring value) else #copy the value from the ori…

---

_[View the full topic](https://in-thread.sonic-pi.net/t/am-i-missing-something-getting-length-of-array/3141)._
