Skip to content

Instantly share code, notes, and snippets.

@shrdlu68
Last active September 18, 2018 19:21
Show Gist options
  • Select an option

  • Save shrdlu68/10ce10d70d4818017a174226382ba990 to your computer and use it in GitHub Desktop.

Select an option

Save shrdlu68/10ce10d70d4818017a174226382ba990 to your computer and use it in GitHub Desktop.
(defparameter *initial-array* (make-array 2 :element-type 'single-float :initial-element 0.0))
(defun foo ()
(loop with markov-db = (make-array 24
:element-type '(simple-array single-float 2)
:initial-element *initial-array*)
repeat 1
do (print markov-db)))
(foo)
The value
#(0.0 0.0)
is not of type
(SIMPLE-ARRAY SINGLE-FLOAT (* *))
[Condition of type TYPE-ERROR]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment