[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: adding a markup ("sim.") to the end of a SustainPedalBracket
From: |
Thomas Morley |
Subject: |
Re: adding a markup ("sim.") to the end of a SustainPedalBracket |
Date: |
Mon, 28 Dec 2015 22:38:49 +0100 |
2015-12-28 1:25 GMT+01:00 David Kastrup <address@hidden>:
> Thomas Morley <address@hidden> writes:
>
>> (1)
>> stencil-whiteout-box uses define*-public and optional arguments, I
>> thought it's broken in guilev2
>
> Only in connection with currying. So
>
> (define*-public ((...
>
> is (possibly) going to cause trouble while
>
> (define*-public (...
>
> is ok.
>
Thanks for the hint.
Iiuc, than the following is a curried definition:
(define (((((curry-list-a a) b) c) d) e)
(list a b c d e))
It could be rewritten as:
(define curry-list-b
(lambda (a)
(lambda (b)
(lambda (c)
(lambda (d)
(lambda (e) (list a b c d e)))))))
guilev2 may have problems with:
(define*-public (((((curry-list-c a) b) c) d) e #:optional (f "x"))
(list a b c d e f))
Though I'm not sure with the following one. May I ask: curried or not?
(define (foo a b)
(let ((x2 (lambda (arg) (* 2 arg))))
(map x2 (list a b))))
Best,
Harm