The concatenate function entry in the hyperspec has an example:
(concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
=> (#\A #\B #\C D E F 1 2 3 1 0 1 1)
What does that "#*" part mean?
With Lispworks,
CL-USER 4 > (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
(#\A #\B #\C D E F 1 2 3 1 0 1 1)
With ACL
CG-USER(2): (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
(#\A #\B #\C D E F 1 2 3 1 ...)
What do you think that "..." is supposed to mean?
Thanks,
Rand
··········@eudoramail.com (Rand Sobriquet) writes:
> What does that "#*" part mean?
(type-of #*1011)
=> (SIMPLE-ARRAY BIT (#x4))
..so it's a bit-array, and #* is the bit-array syntax.
> What do you think that "..." is supposed to mean?
That *print-length* is exceeded.
--
Frode Vatvedt Fjeld
Hi Rand Sobriquet,
> The concatenate function entry in the hyperspec has an example:
>
> (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
> => (#\A #\B #\C D E F 1 2 3 1 0 1 1)
>
> What does that "#*" part mean?
Look up #* in the non-alphabetic section of the HyperSpec's index. #*1011
is a vector with the elements 1, 0, 1 and 1.
(equalp #*1011 #(1 0 1 1)) => true
> With Lispworks,
>
> CL-USER 4 > (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
> (#\A #\B #\C D E F 1 2 3 1 0 1 1)
>
> With ACL
>
> CG-USER(2): (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
> (#\A #\B #\C D E F 1 2 3 1 ...)
>
> What do you think that "..." is supposed to mean?
It looks like an annoying pretty printing option. See what
(format t "~S" (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011))
prints.
Regards,
Adam
Adam Warner wrote:
> Look up #* in the non-alphabetic section of the HyperSpec's index. #*1011
> is a vector with the elements 1, 0, 1 and 1.
A BIT vector, actually.
Paul
Hi Paul F. Dietz,
> Adam Warner wrote:
>
>> Look up #* in the non-alphabetic section of the HyperSpec's index.
>> #*1011 is a vector with the elements 1, 0, 1 and 1.
>
> A BIT vector, actually.
True, and Rand could discover it, as I did, by reading the HyperSpec that
I suggested he look at.
It's a SIMPLE bit vector, actually.
Regards,
Adam
> Look up #* in the non-alphabetic section of the HyperSpec's index. #*1011
> is a vector with the elements 1, 0, 1 and 1.
>
Oh say thanks (and to Frode too). I usually use the symbol index
(where I couldn't find the definition) and I had totally forgotten
about using the master index until I read your message.
Rand