def cleared_stream

bendvy-ecs-core@0.1.0.4 · restore_graph_machine.bend:16

import bendvy-ecs-core@0.1.0.4/restore_graph_machine.bend as RestoreGraphMachine
import Base
import bendvy-ecs-core@0.1.0.4/machine_stream.bend as Stream
import bendvy-ecs-core@0.1.0.4/machine_stream_queue.bend as Queue

16def cleared_stream(~V:Data,value:Stream.Stream<V>) -> Stream.Stream<V>:
17  match value:
18    case Stream.Stream{Queue.Queue{_,_,_,dropped,_},positions,frameStart}:Stream.Stream{Queue.Queue{[],[],0n,dropped,0n},positions,frameStart}

Uses (3)

Used by (2)