~/bend-docscommunity

src/core/extrema_queue.bend checks

raw source on the hub · import bend-ta@0.1.0.0/src/core/extrema_queue.bend as Extrema_queue

1 import
import Base

Types

type Entry source · line 3 · raw

@-N:Data -> Data

type Queue source · line 6 · raw

@-N:Data -> Type

type State source · line 9 · raw

@-N:Data -> Type

type Value source · line 12 · raw

@-N:Data -> Data

Definitions

def age source · line 59 · raw

@+period:U32 -> @position:U32 -> @slot:U32 -> U32

Templates

template init source · line 15 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @+period:U32 -> @+depth:Nat -> State<N>

template inserted source · line 19 · raw

@-N:Data -> @head:U32 -> @size:U32 -> @result:Pair(Array<Entry<N>>, Entry<N>) -> Queue<N>

template insert source · line 23 · raw

@-N:Data -> @+period:U32 -> @+head:U32 -> @+size:U32 -> @slot:U32 -> @value:N -> @buffer:Array<Entry<N>> -> Queue<N>

template prune.chosen source · line 26 · raw

@-N:Data -> @period:U32 -> @head:U32 -> @size:U32 -> @slot:U32 -> @value:N -> @buffer:Array<Entry<N>> -> @rest:(@_:Array<Entry<N>> -> Queue<N>) -> @remove:Bool -> Queue<N>

template prune.read source · line 31 · raw

@-N:Data -> @-wins:(@_:N -> @_:N -> Bool) -> @period:U32 -> @head:U32 -> @size:U32 -> @slot:U32 -> @+value:N -> @result:Pair(Array<Entry<N>>, Entry<N>) -> @rest:(@_:Array<Entry<N>> -> Queue<N>) -> Queue<N>

template prune source · line 35 · raw

@-N:Data -> @-wins:(@_:N -> @_:N -> Bool) -> @fuel:Nat -> @+period:U32 -> @+head:U32 -> @+size:U32 -> @+slot:U32 -> @+value:N -> @buffer:Array<Entry<N>> -> Queue<N>

template expire.read source · line 40 · raw

@-N:Data -> @-wins:(@_:N -> @_:N -> Bool) -> @+period:U32 -> @+head:U32 -> @+size:U32 -> @+slot:U32 -> @value:N -> @result:Pair(Array<Entry<N>>, Entry<N>) -> Queue<N>

template push source · line 47 · raw

@-N:Data -> @-wins:(@_:N -> @_:N -> Bool) -> @period:U32 -> @slot:U32 -> @value:N -> @queue:Queue<N> -> Queue<N>

template front.read source · line 51 · raw

@-N:Data -> @head:U32 -> @size:U32 -> @result:Pair(Array<Entry<N>>, Entry<N>) -> Pair(Queue<N>, Entry<N>)

template front source · line 55 · raw

@-N:Data -> @queue:Queue<N> -> Pair(Queue<N>, Entry<N>)

template output.high source · line 62 · raw

@-N:Data -> @+period:U32 -> @+size:U32 -> @+position:U32 -> @low:Queue<N> -> @l:Entry<N> -> @result:Pair(Queue<N>, Entry<N>) -> Pair(State<N>, Maybe<&2, Value<N>>)

template output.low source · line 67 · raw

@-N:Data -> @period:U32 -> @size:U32 -> @position:U32 -> @high:Queue<N> -> @result:Pair(Queue<N>, Entry<N>) -> Pair(State<N>, Maybe<&2, Value<N>>)

template ready source · line 71 · raw

@-N:Data -> @state:State<N> -> @full:Bool -> Pair(State<N>, Maybe<&2, Value<N>>)

template next source · line 76 · raw

@-N:Data -> @-lower:(@_:N -> @_:N -> Bool) -> @-higher:(@_:N -> @_:N -> Bool) -> @state:State<N> -> @low:N -> @high:N -> Pair(State<N>, Maybe<&2, Value<N>>)