From 0e699be281c8dea53e589e08a5831837e0eae7ea Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 7 Oct 2021 20:17:50 -0400 Subject: Updates for Chickadee 0.8.0 and Guile-SDL2 0.7.0. --- manuals/chickadee/Queues.html | 133 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 manuals/chickadee/Queues.html (limited to 'manuals/chickadee/Queues.html') diff --git a/manuals/chickadee/Queues.html b/manuals/chickadee/Queues.html new file mode 100644 index 0000000..1df6f78 --- /dev/null +++ b/manuals/chickadee/Queues.html @@ -0,0 +1,133 @@ + + + + + + +Queues (The Chickadee Game Toolkit) + + + + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: Data Structures   [Contents][Index]

+
+
+

5.6.2 Queues

+ +

The (chickadee data queue) module provides a mutable queue that +is more memory efficient than Guile’s built-in (ice-9 q) +module. +

+
+
Procedure: make-queue
+

Return a new, empty queue. +

+ +
+
Procedure: queue? obj
+

Return #t if obj is a queue. +

+ +
+
Procedure: queue-empty? queue
+

Return #t if queue is empty. +

+ +
+
Procedure: queue-length queue
+

Return the current length of queue. +

+ +
+
Procedure: enqueue! queue item
+

Add item to queue. +

+ +
+
Procedure: dequeue! queue
+

Remove and return the first item in queue. +

+ +
+
Procedure: queue-clear! queue
+

Remove all items from queue. +

+ + + + + + -- cgit v1.2.3