[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameters

From: Chusslove Illich
Subject: Re: Parameters
Date: Mon, 4 Feb 2008 16:29:17 +0100
User-agent: KMail/1.9.5

> [: Sebastian Tennant :]
> Why does the second procedure fail regardless of how it is called?

Because the recursive call in it is of the first type, not corresponding to
the base call. You would need to use apply, i.e.

  (+ (apply add (cdr l)) (car l))

Chusslove Illich (Часлав Илић)

Attachment: pgprQcSZkpi_R.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]