Hello,
When SLIME (clisp) returns a long list, it does not display it fully
(using dots). Sometimes it is interesting to view the whole list even
if it is very long. In this case, I just wanted to be sure the
cross-product was right.
Do you know how to do it ? Maybe by customizing SLIME.
TIA,
Ludovic Kuty
CL-USER> (cross-product #'cons '(A B C D E F) '(1 2 3 4 5 6 7 8))
((A . 1) (B . 1) (C . 1) (D . 1) (E . 1) (F . 1) (A . 2) (B . 2) (C .
2)
(D . 2) ...)
CL-USER> '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30)
(1 2 3 4 5 6 7 8 9 10 ...)
CL-USER>
Thanks.
Actually *print-depth* has no effect on the display in the little
examples I've tried. Don't knowwhy. But *print-level* works and the
output is replaced by a # when the list is too deep. I just found it
with Google.
CL-USER> (setf *print-pretty* t *print-length* 6 *print-level* 3)
3
CL-USER> '((1 ( 2 (3 4 5 6 7 8 9))) 1 2 3 4 5 6 7 8 9 10)
((1 (2 #)) 1 2 3 4 5 ...)
"Ludovic Kuty" <············@gmail.com> writes:
> Thanks.
> Actually *print-depth* has no effect on the display in the little
> examples I've tried. Don't knowwhy.
Probably because *print-depth* is no COMMON-LISP variable. (*^_^*)
Sorry for the confusion.
> But *print-level* works and the
> output is replaced by a # when the list is too deep. I just found it
> with Google.
>
> CL-USER> (setf *print-pretty* t *print-length* 6 *print-level* 3)
> 3
> CL-USER> '((1 ( 2 (3 4 5 6 7 8 9))) 1 2 3 4 5 6 7 8 9 10)
> ((1 (2 #)) 1 2 3 4 5 ...)
--
__Pascal Bourguignon__ http://www.informatimago.com/
NEW GRAND UNIFIED THEORY DISCLAIMER: The manufacturer may
technically be entitled to claim that this product is
ten-dimensional. However, the consumer is reminded that this
confers no legal rights above and beyond those applicable to
three-dimensional objects, since the seven new dimensions are
"rolled up" into such a small "area" that they cannot be
detected.