From 1b556d9e057c6e3bed4893036d12eed1f3bc238d Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Thu, 7 Aug 2008 14:57:27 +0200 Subject: Add various array operations. --- Sacla/array.lisp | 9 +++++++++ Sacla/data-and-control.lisp | 3 +++ 2 files changed, 12 insertions(+) (limited to 'Sacla') diff --git a/Sacla/array.lisp b/Sacla/array.lisp index 4fd0147..23b6c39 100644 --- a/Sacla/array.lisp +++ b/Sacla/array.lisp @@ -27,6 +27,15 @@ ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +(in-package #:common-lisp) + +(export '(aref array-dimenion array-in-bounds-p array-rank + array-row-major-index array-total-size bit-andc1 bit-andc2 + bit-eqv bit-nand bit-nor bit-orc1 bit-orc2 bit-vector-p + simple-bit-vector-p vector vector-pop vector-push + vector-push-extend vectorp )) + + (defun aref (array &rest subscripts) "Access an element of ARRAY specified by SUBSCRIPTS." (row-major-aref array (apply #'array-row-major-index array subscripts))) diff --git a/Sacla/data-and-control.lisp b/Sacla/data-and-control.lisp index cea7493..236440b 100644 --- a/Sacla/data-and-control.lisp +++ b/Sacla/data-and-control.lisp @@ -26,6 +26,9 @@ ;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +(in-package #:common-lisp) + + (defun expand-case (keyform clauses &key (test #'eql)) (let ((key (gensym)) (last (car (last clauses)))) -- cgit v1.2.3