queue-length

Synopsis

(queue-length queue)

Parameters

  • queue

Description

This procedure returns the number of elements currently held in the FIFO queue.

Side Effects

Return Value

The length of the FIFO queue is returned.

Example

> (define q (queue-create))
q
> (queue-put! q "item")
ok
> (queue-length q)
1
>