;;; -*- Gerbil -*-
;;; (c) vyzo at hackzen.org
;;; SRFI-134: Immutable Deques
package: std/srfi

(import :std/srfi/1
        :std/srfi/8
        :std/srfi/9
        :std/srfi/121)
(export ideque ideque-tabulate ideque-unfold ideque-unfold-right
        ideque? ideque-empty? ideque= ideque-any ideque-every

        ideque-front ideque-add-front ideque-remove-front
        ideque-back  ideque-add-back  ideque-remove-back

        ideque-ref
        ideque-take ideque-take-right ideque-drop ideque-drop-right
        ideque-split-at

        ideque-length ideque-append ideque-reverse
        ideque-count ideque-zip

        ideque-map ideque-filter-map
        ideque-for-each ideque-for-each-right
        ideque-fold ideque-fold-right
        ideque-append-map

        ideque-filter ideque-remove ideque-partition

        ideque-find ideque-find-right
        ideque-take-while ideque-take-while-right
        ideque-drop-while ideque-drop-while-right
        ideque-span ideque-break

        list->ideque ideque->list
        generator->ideque ideque->generator)

(include "srfi-134.scm")