def counted_row
import bendvy-ecs-core@0.1.0.3/owned_event_log.bend as OwnedEventLogimport Base
64def counted_row(~P:Type,row:Row<P>,result:List<Row<P>> & Nat) -> List<Row<P>> & Nat:
65 match result:
66 case (rows,count):(row <> rows,1n+count)
import bendvy-ecs-core@0.1.0.3/owned_event_log.bend as OwnedEventLogimport Base
64def counted_row(~P:Type,row:Row<P>,result:List<Row<P>> & Nat) -> List<Row<P>> & Nat:
65 match result:
66 case (rows,count):(row <> rows,1n+count)