Skip to content

Commit

Permalink
Add defpackage definition for lazy package cap18-lazy-programming
Browse files Browse the repository at this point in the history
Export all the functions
  • Loading branch information
ryukinix committed Mar 15, 2017
1 parent 88cb1a5 commit 549573f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions land-of-lisp/cap18-lazy-programming.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@
;; NOTE: This chapter has a lazy evaluation system very similar
;; to discussed on the lectures about STREAMS (6A-6B) of SICP at MIT.

(defpackage :lazy
(:use :cl)
(:export :lazy
:force
:lazy-cons
:lazy-car
:lazy-cdr
:lazy-nil
:lazy-null
:make-lazy
:take
:take-all
:lazy-mapcar
:lazy-mapcan
:lazy-find-if
:lazy-nth
:*integers*))

(in-package :lazy)

(defmacro lazy (&body body)
(let ((forced (gensym))
(value (gensym)))
Expand Down

0 comments on commit 549573f

Please sign in to comment.