4 lines
369 B
Text
4 lines
369 B
Text
# ludic.base/kept.ludic - the one push the frame is allowed: into a list its owner keeps and clears,
|
|
# which grows to the most it has ever held and stays there (a queue's halves, a query's out list)
|
|
@alloc_ok("a kept list: it grows to the most it has held once, is cleared and reused, never dropped")
|
|
export function kept_push<T>(xs: []T, v: T) -> void { push(xs, v) }
|