File: package.lisp

package info (click to toggle)
cl-rsm-delayed 1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 72 kB
  • ctags: 30
  • sloc: lisp: 495; makefile: 44; sh: 28
file content (56 lines) | stat: -rw-r--r-- 1,708 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name:          package.lisp
;;;; Purpose:       Package definition for Delayed lists.
;;;; Author:        R. Scott McIntire
;;;; Date Started:  Aug 2003
;;;;
;;;; $Id: package.lisp,v 1.2 2003/08/21 19:57:11 kevinrosenberg Exp $
;;;; *************************************************************************

(in-package #:cl-user)

(defpackage rsm.delayed
  (:use #:cl)
  (:shadow #:car #:cdr #:cons #:list #:mapcar #:nth)
  (:documentation
   "Overloads the names of the usual set of list functions with stream versions
(delayed lists). These functions will work with ordinary lists or ordinary lists
combined with delayed lists.

REQUIRES: packages rsm.queue and rsm.filter.

Export Summary:

car       : Delayed list version of car.
cdr       : Delayed list version of cdr.
cycle     : Form a stream consisting of a repeated cycle.
drop      : Remove some number of elements from a delayed list.
delayed   : Type for delayed list.
delayed-p : Predicate for a delayed list.
list      : Delayed list version of list.
mapcar    : Mapcar for delayed lists.
nth       : Nth for delayed lists.
repeat    : Form a delayed list consisting of a repeated value.
take      : Return a list formed by retrieving some number of elements of
            a stream.
zip-with  : Form a delayed list by \"zipping\" together two
            delayed lists using a zip function.")
  (:export
   #:car
   #:cdr
   #:cons
   #:cycle
   #:drop
   #:filter
   #:delayed-p
   #:delayed
   #:list
   #:mapcar
   #:nth
   #:repeat
   #:take
   #:zip-with
   ))