DoublyLinkedList.project_length: 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 245-250 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=245&end_line=250 import Base import bend-collections@1.0.0.0/src/containers/types/doubly_linked_list.bend as E def project_length(~T: Data, r: DList & E.Obs) -> DList & Nat: match r: case Tuple{s, E.ONat{x}}: (s, x) case Tuple{s, other}: (s, 0n) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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=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/types/doubly_linked_list.bend&name=Obs