[Top][All Lists]

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

Re: scheme function

From: David Kastrup
Subject: Re: scheme function
Date: Thu, 20 Dec 2018 13:18:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Urs Liska <address@hidden> writes:

>>>        (set! counter (1+ counter))
> And it must be
>   (set! counter (+ 1 counter))
> (first the procedure "+", then the arguments)

Have you tried?  1+ is defined as a function taking one argument.
Scheme has a lot less restrictions on identifier names than some other
programming languages.

David Kastrup

reply via email to

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