[Openmcl-devel] square bracket list

Taoufik Dachraoui dachraoui.taoufik at gmail.com
Sun Jul 24 03:07:32 PDT 2011


to be more precise, is there a way to print lists depending on the car
of the list
 (cond
   ((eq (car lst) #\[) (print list using [...]))
   ((eq (car lst) #\{) (print list using {...}))
   (t (print list using (...))))

kind regards
Taoufik


On Sun, Jul 24, 2011 at 11:56 AM, Taoufik Dachraoui
<dachraoui.taoufik at gmail.com> wrote:
> Hi
>
> is it possible to print special lists using square brackets
>
> example:
>
> (a b [1 2 3] e)
>
> the list [1 2 3] is special and is printed using a square bracket.
>
> I can cons a special character to differentiate special lists like the
> following:
>
> (a b (#\$ 1 2 3) e)
>
> but it is better if i can find a way to print special lists using
> square brackets.
>
> Kind regards
> Taoufik
>



More information about the Openmcl-devel mailing list