[plt-scheme] Dotted triple?

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Nov 19 17:54:13 EST 2003

Chris Johnson wrote:
> The other day in class, my professor typed (cdr '(a . b . c)) in 
> DrScheme and got (a c) back. (car '(a . b . c)) gives back b. Just '(a . 
> b . c) confirms that this is (b a c). I was just wondering why this is. 

> Is it some peculiarity of PLT scheme or a bug or what? MIT Scheme and 
> guile both complain about '(a . b . c). I was using R5RS as the language 
> pack in DrScheme.

Pecularity and Pecularity. It is a PLT Scheme specifik feature.
It allows you to use infix notation.

     (1 . + . 2)

Search for infix in the HelpDesk.

-- 
Jens Axel Søgaard






Posted on the users mailing list.