Without using tumbling windows, how is the position itself included in a result?
Obviously "$p" should be the "index" of each $item in $items. Th