[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
define-void-function
From: |
Freeman Gilmore |
Subject: |
define-void-function |
Date: |
Thu, 7 May 2020 22:22:53 -0400 |
Need lots of help this. Starting with this:
sum = #(lambda x
(define A (apply + x))
(display A))
#(sum 2 3 4 5) % 14 (from LilyPond Log)
I am guessing from reading “Extending LilyPond“ the above could be maid into:
function =
(define-void-function
(arg1 arg2 …)
(type1? type2? …)
body)
This is one of my many tries: but nothing works:
sum = #(define-void-function (x)
(lambda x
(define A (apply + x))
(display A)))
{\sum 2 3 4}
Thank you, ƒg
- define-void-function,
Freeman Gilmore <=