Next: , Previous: , Up: API Reference   [Contents][Index]


3.6 Queues

Grip module that provides FIFO queue - list based - syntaxes, which you may load using:

(use-modules (grip queue))

Syntax

push
push!
push*
push*!
pop
pop!
pop*
pop*!

Syntax

Syntax: push item lst
Syntax: push! item lst

Return a list, defined as (cons item lst).

push! mutates lst so it contains the returned list.

Syntax: push* i1 i2 i3 … lst
Syntax: push*! i1 i2 i3 … lst

Return a list, defined as (cons* i1 i2 i3 ... lst).

push*! mutates lst so it contains the returned list.

Syntax: pop lst
Syntax: pop! lst

Return a list, defined as (cdr lst).

pop! mutates lst so it contains the returned list.

Syntax: pop* lst n-item
Syntax: pop*! lst n-item

Return a list, defined as (drop lst n-item).

pop*! mutates lst so it contains the returned list.