def take_receipts
import bendvy-ecs-core@0.1.0.3/execution_command_buffer.bend as ExecutionCommandBufferimport Base
70def take_receipts(~S:Data,~P:Type,~D:Type,buffer:Buffer<S,P,D>) -> Buffer<S,P,D> & List<Receipt<S,P,D>>:
71 match buffer:
72 case Buffer{pending,receipts}:(Buffer{pending,[]},List.reverse(&1,Receipt<S,P,D>,receipts))
Uses (6)
Used by (0)
No other definition uses this definition.