[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Having trouble understanding optional and variable amount of argumen
From: |
David Kastrup |
Subject: |
Re: Having trouble understanding optional and variable amount of arguments |
Date: |
Thu, 01 Mar 2018 08:55:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Stefano Troncaro <address@hidden> writes:
> Thank you! I see that this is not an option then. Also, I now understand
> why I couldn't make the optional arguments work, since I always left them
> for last.
>
> Do you know if it is possible to have a flexible amount of optional
> arguments that appear before the last mandatory one? Say, for example
> (define-music-function (arg1 args music) (number? ??? ly:music?) where arg1
> and music are mandatory, and basically everything between arg1 and the next
> music expression is compacted into a list and accessed as args in the body
> of the function. Not with that syntax necessarily, but something that
> allows for that kind of usage?
You know that a number or symbol list can be entered as a
comma-separated list?
--
David Kastrup
- Re: Having trouble understanding optional and variable amount of arguments, David Kastrup, 2018/03/01
- Re: Having trouble understanding optional and variable amount of arguments,
David Kastrup <=
- Re: Having trouble understanding optional and variable amount of arguments, Stefano Troncaro, 2018/03/01
- Re: Having trouble understanding optional and variable amount of arguments, Urs Liska, 2018/03/01
- Re: Having trouble understanding optional and variable amount of arguments, Urs Liska, 2018/03/01
- Re: Having trouble understanding optional and variable amount of arguments, Thomas Morley, 2018/03/03
- Re: Having trouble understanding optional and variable amount of arguments, Stefano Troncaro, 2018/03/08
- Re: Having trouble understanding optional and variable amount of arguments, Urs Liska, 2018/03/08
- Re: Having trouble understanding optional and variable amount of arguments, Urs Liska, 2018/03/08
- Re: Having trouble understanding optional and variable amount of arguments, Urs Liska, 2018/03/08
- Re: Having trouble understanding optional and variable amount of arguments, Stefano Troncaro, 2018/03/08
- Re: Having trouble understanding optional and variable amount of arguments, Urs Liska, 2018/03/08