On Mon, Sep 26, 2016 at 3:32 PM, Chet Ramey <chet.ra...@case.edu> wrote: > So you want offset N to be the nth element in the array instead of the > element with index N? Huh.
Maybe, not always. Both would be nice. The offset isn't the element with the index N. It's the next set element whose index is >= that of the selected offset. There's no simple way of knowing how many set elements come before or after offset - possibly zero. In order to insert something after the first element you have to find the index of the first element. > Well, you probably want another data structure. Yes please. Everybody wants more data structures. (I know... patches accepted.)