Re: [frogs] Adding docstring support to def-grace-function |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: frogs@xxxxxxxxxxx
- Subject: Re: [frogs] Adding docstring support to def-grace-function
- From: "Neil Puttock" <n.puttock@xxxxxxxxx>
- Date: Wed, 7 Jan 2009 21:17:14 +0000
- Cc: lily-devel <lilypond-devel@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=H/JdxtMjSrVAhxB8Vlr++UxZVmMxC2v0c4lgVE7BCb8=; b=VZ3Xo6+UXv9qVcDFKpjf9Xg6i8vT0Hz+H5oV845BEVVLFeYxJeQZfHx/wad7m8Ssri I6WNNQypBFmEvvJLT3DovtDlNybAnOLQ85oU9UCsf+gqv+s8d2QlAvBJEdRk2Ntn88OM s16Js/Lz65Na0eXhn+cmEMQqv/5G+bSjaek6c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=NYyoJEVdeXTG2in592QIsMY2Zh4U54tJpPMKXg8wwfcVzog295LvvfZ5ZMqIficMdL 9B5c3S/bIjp6LGP5yA7dansDFs9l7OYFST9GMvs28Hzup50wobm/UIi9Bgk6YBHh6Lvs hCr2Z/djUxXj14SKxaS1qC/p5i12LSMRgFA1A=
2009/1/7 Carl D. Sorensen <c_sorensen@xxxxxxx>:
> You can also paste the following in at the guile> prompt, which is obtained
> by typing
>
> guile
>
> in a terminal window:
>
> (define (test-opt-args arg1 arg2 . t-opt-args arg1 arg2 . rest)
> (display "arg1 ")(display arg1)(newline)
> (display "arg2 ")(display arg2)(newline)
> (display "rest ")(display rest)(newline))
> (test-opt-args 1 2 3 4 5 6 7 8 9)
>
>
> This will define and execute a procedure named test-opt-args that has two
> fixed arguments and the remainder are optional.
As Carl has shown here, the optional arguments are often named `rest';
you'll find a few interesting examples in lilypond by grepping for `.
rest'.
Regards,
Neil
---
----
Join the Frogs!