DoublyLinkedList.next_ready: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/doubly_linked_list.bend as DoublyLinkedList Lines 315-320 of bend-collections@1.0.0.0/src/containers/doubly_linked_list.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/doubly_linked_list.bend&start_line=315&end_line=320 import Base 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 def next_ready(~T: Data, +h: E.Handle, r: DList & Maybe<&2, E.Error>) -> DList & Result<&2, &2, E.Error, Maybe<&2, E.Handle>>: match r: case Tuple{s, Some{e}}: (s, Fail{e}) case Tuple{DL{tag, depth, cap, raw, gens}, None{}}: project_neighbour(~T, neighbour_result(~T, tag, depth, cap, gens, R.next(~T, raw, old_handle(h)))) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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=Sigma 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/doubly_linked_list.bend&name=neighbour_result https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/doubly_linked_list.bend&name=old_handle https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/doubly_linked_list.bend&name=project_neighbour https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/internal/dlist_storage.bend&name=next 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