changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / lisp/lib/obj/seq.lisp

changeset 698: 96958d3eb5b0
parent: e243efeae91d
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
1 ;;; lib/obj/seq.lisp --- Sequences
2 
3 ;; This package provides CLOS mixins for implementing sequences and iterators.
4 
5 ;; We use SBCL's extension to ANSI spec which allows subclassing of
6 ;; the SEQUENCE class as well as the Iterator Protocol described in
7 ;; the manual. Where possible, we avoid the Simple Iterator Protocol.
8 
9 ;; SB-SEQUENCE is similar to SB-POSIX in the sense that you're
10 ;; supposed to use their package prefixes since they conflict with
11 ;; symbols exported by CL. This package can be USEd in a DEFPACKAGE
12 ;; form without conflicts.
13 
14 ;;; Code:
15 (in-package :obj/seq)
16 
17 (defclass iterator ()
18  ()
19  (:documentation "Iterator superclass inherited by objects implementing the iterator protocol."))
20 
21 (defclass ring ()
22  ()
23  (:documentation "Ring buffer protocol."))