lilypond-user
[Top][All Lists]
Advanced

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

Re: Optional arguments for scheme functions


From: Aaron Hill
Subject: Re: Optional arguments for scheme functions
Date: Sun, 26 Apr 2020 12:52:23 -0700
User-agent: Roundcube Webmail/1.4.2

On 2020-04-26 10:01 am, David Kastrup wrote:
Predicates used in argument parsing have to be "primary" in that they
have to deliver a result for anything thrown at them.

positive? only delivers results for numbers but throws an error for
anything else.

Would there be harm in redefining an R5RS primitive?

;;;;
(define (positive? arg) (and (number? arg) (< 0 arg))
;;;;


-- Aaron Hill



reply via email to

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