2015-12-28 1:25 GMT+01:00 David Kastrup <d...@gnu.org>:
> Thomas Morley <thomasmorle...@gmail.com> 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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to