[erlang-questions] conses in erlang?

Richard A. O'Keefe <>
Fri Jul 4 04:19:06 CEST 2008


On 3 Jul 2008, at 11:11 pm, Johnny Billquist wrote:

> Johnny Billquist wrote:
>> Richard A. O'Keefe skrev:
>>> On 2 Jul 2008, at 8:33 pm, not norwegian swede wrote:
>>>> can i use conses in erlang?
>>> [ H | T ] in Erlang is precisely the same thing as (cons H T) in  
>>> Scheme.
>> But it's totally the same as a cons in Lisp.
>
> Argh! I meant to say that it's *not* entirely the same thing as a  
> cons in Lisp (my memory of Scheme is rusty, so I can't say for sure  
> how a cons in Scheme works).

That's why I said it's precisely the same thing as cons in SCHEME.
In the R6RS specification of Scheme, set-car! and set-cdr! are no
longer part of the core language; they are in an optional module.




More information about the erlang-questions mailing list