Skip to content
Snippets Groups Projects
Commit 5ce466a9 authored by Nikodemus Siivola's avatar Nikodemus Siivola
Browse files

deftype for ARRAY-LENGTH

parent 7533fb71
No related branches found
No related tags found
No related merge requests found
(in-package :alexandria)
(deftype array-index (&optional (length array-dimension-limit))
"Type designator for an array of LENGTH: an integer between 0 (inclusive) and
LENGTH (exclusive). LENGTH defaults to ARRAY-DIMENSION-LIMIT."
"Type designator for an index into array of LENGTH: an integer between
0 (inclusive) and LENGTH (exclusive). LENGTH defaults to
ARRAY-DIMENSION-LIMIT."
`(integer 0 (,length)))
(deftype array-length (&optional (length array-dimension-limit))
"Type designator for a dimension of an array of LENGTH: an integer between
0 (inclusive) and LENGTH (inclusive). LENGTH defaults to
ARRAY-DIMENSION-LIMIT."
`(integer 0 ,length))
(defun copy-array (array &key
(element-type (array-element-type array))
(fill-pointer (and (array-has-fill-pointer-p array)
......
......@@ -72,6 +72,7 @@
#:standard-deviation
;; Arrays
#:array-index
#:array-length
#:copy-array
;; Sequences
#:emptyp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment