Skip to content

Commit

Permalink
import用ユーティリティー iterate:install 追加
Browse files Browse the repository at this point in the history
  • Loading branch information
youz committed Jun 22, 2012
1 parent ec22340 commit 0b41579
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion site-lisp/iterate/pkg.l
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#:maximize #:minimize #:maximizing #:minimizing #:counting
#:always #:never #:thereis #:finding #:collect #:collecting
#:with #:while #:until #:adjoining #:nconcing #:appending
#:nunioning #:unioning #:reducing #:accumulate #:accumulating))
#:nunioning #:unioning #:reducing #:accumulate #:accumulating
#:install
))


(eval-when (:compile-toplevel :load-toplevel :execute)
Expand All @@ -35,6 +37,12 @@

(in-package :iterate)

(defun install (&optional (package *package*) &key excludes)
(do-external-symbols (s :iterate)
(unless (or (eq s 'install) (find s excludes :tes #'string-equal))
(shadowing-import (list s) package)))
t)

;;; work around sbcl's obnoxious standard compliance

(defmacro defconst (name value &optional doc)
Expand Down

0 comments on commit 0b41579

Please sign in to comment.