Deque.Deque.pop_front.refill: def of bend-kit-collections@0.1.4.1
Import: import bend-kit-collections@0.1.4.1/deque.bend as Deque
Lines 94-98 of bend-kit-collections@0.1.4.1/deque.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/deque.bend&start_line=94&end_line=98
import Base
def Deque.pop_front.refill(
a, -A: Kind(a), bn: List & Nat
) -> Maybe<&1, A & Deque>:
(b, n) = bn
Deque.pop_front.halves(a, A, Deque.split(a, A, Deque.half(n), b))
Uses (9):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe
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-kit-collections@0.1.4.1/deque.bend&name=Deque
https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/deque.bend&name=Deque.half
https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/deque.bend&name=Deque.pop_front.halves
https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/deque.bend&name=Deque.split