Hacker News new | past | comments | ask | show | jobs | submit login

It's frequently used in signal processing to the point where it's considered one of the defining features of DSPs. One common case is filtering over a fixed size buffer of samples. If you have circular indexing, you can simply overwrite the earliest sample and increment the base reference to the next element.

I'm not sure I'd want it for every list, but there are certain places it's nice.

[1] https://www.allaboutcircuits.com/technical-articles/circular...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: