IntrusiveLinks.Links: type of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/intrusive_links.bend as IntrusiveLinks Lines 4-11 of bend-collections@1.0.0.0/src/containers/intrusive_links.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/intrusive_links.bend&start_line=4&end_line=11 import Base # A ready-made link table for the intrusive list: entity ids are U32 values # 1 .. 2^node_depth - 1 (0 means "no entity"), roots are 0 .. 2^root_depth - 1. # One U32 per link, so a membership edit is a few indexed array writes. The # accessors below are the ones proved to meet the adapter laws for every size # (proofs/containers/intrusive_doubly_linked_list/links.bend); an application # that keeps its own entity array can copy this layout. type Links is Type: Links{nexts: Array, prevs: Array, heads: Array} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32