OwnedEventLog.partitioned: def of bendvy-ecs-core@0.1.0.3
Import: import bendvy-ecs-core@0.1.0.3/owned_event_log.bend as OwnedEventLog
Lines 30-33 of bendvy-ecs-core@0.1.0.3/owned_event_log.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/owned_event_log.bend&start_line=30&end_line=33
import Base
def partitioned(~P:Type,keep:Bool,row:Row
,result:List> & List>) -> List> & List>:
match keep result:
case True{}, (retained,retired):(row <> retained,retired)
case False{}, (retained,retired):(retained,row <> retired)
Uses (5):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/owned_event_log.bend&name=Row