Camber.groups.prepare: def of bend-kit-camber@0.15.0.1 Import: import bend-kit-camber@0.15.0.1/camber.bend as Camber Lines 559-568 of bend-kit-camber@0.15.0.1/camber.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-camber@0.15.0.1/camber.bend&start_line=559&end_line=568 import Base def groups.prepare(~P: Data, groups: List<&2, Group
>, +all: List<&2, Group
>) -> Result<&2, &2, RegistrationError, List<&2, GroupPlan
>>: match groups: case Nil{}: Done{Nil{}} case Group{id, ancestors, policy} <> rest: +ids = List.append(&2, U32, ancestors, [id]) do Result<&2, &2, RegistrationError, List<&2, GroupPlan
>>: policies : List<&2, P> <- routes.policies(~P, groups.policies(~P, ids, all, Nil{}), ids) plans : List<&2, GroupPlan
> <- groups.prepare(~P, rest, all) return GroupPlan{ids, policies} <> plans Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-camber@0.15.0.1/camber.bend&name=Group https://jend.leeeet.dev/definition.txt?path=bend-kit-camber@0.15.0.1/camber.bend&name=GroupPlan https://jend.leeeet.dev/definition.txt?path=bend-kit-camber@0.15.0.1/camber.bend&name=RegistrationError https://jend.leeeet.dev/definition.txt?path=bend-kit-camber@0.15.0.1/camber.bend&name=groups.policies https://jend.leeeet.dev/definition.txt?path=bend-kit-camber@0.15.0.1/camber.bend&name=routes.policies