Queue.peek_ready: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/queue.bend as Queue Lines 35-40 of bend-collections@1.0.0.0/src/containers/queue.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/queue.bend&start_line=35&end_line=40 import Base import bend-collections@1.0.0.0/src/containers/types/queue.bend as E def peek_ready(~T: Data, q: Queue) -> Queue & Result<&2, &2, E.Error, T>: match q: case QU{Nil{}, b, n}: (QU{Nil{}, b, n}, Fail{E.EmptyQueue{}}) case QU{Con{+x, f}, b, n}: (QU{Con{x, f}, b, n}, Done{x}) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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/queue.bend&name=Queue https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/types/queue.bend&name=Error