DlistIterator.cursor_insert_gap: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/dlist_iterator.bend as DlistIterator Lines 92-95 of bend-collections@1.0.0.0/src/containers/dlist_iterator.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/dlist_iterator.bend&start_line=92&end_line=95 import Base import bend-collections@1.0.0.0/src/containers/doubly_linked_list.bend as D import bend-collections@1.0.0.0/src/containers/internal/dlist_storage.bend as R import bend-collections@1.0.0.0/src/containers/types/doubly_linked_list.bend as E # n is a live cursor link, or zero for the gap following the tail. def cursor_insert_gap(~T: Data, s: D.DList, +n: U32, x: T) -> D.DList & Result<&2, &2, E.Error, E.Handle>: D.DL{tag, depth, cap, R.DL{owner, fresh, free, count, head, +tail, rd, rc, vals, prevs, nexts}, gens} = s insert_gap(~T, tag, depth, cap, gens, owner, fresh, free, count, head, tail, rd, rc, vals, nexts, n, x, gap_left(prevs, tail, n, U32.is_eq(n, 0))) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/dlist_iterator.bend&name=gap_left https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/dlist_iterator.bend&name=insert_gap https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/doubly_linked_list.bend&name=DList https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/internal/dlist_storage.bend&name=DList https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/types/doubly_linked_list.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/types/doubly_linked_list.bend&name=Handle