[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing along variable-number arguments
From: |
Urs Liska |
Subject: |
Re: Passing along variable-number arguments |
Date: |
Tue, 2 Feb 2016 07:49:15 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
Am 02.02.2016 um 00:44 schrieb David Kastrup:
> Urs Liska <address@hidden> writes:
>
>> In this code "format" receives "fmt" (the format strings) and "vals" -
>> the *list* of arguments.
>> How should I modify this so "format" doesn't parenthesize the output and
>> also works with more than one argument and placeholder in the format string?
> (apply format fmt vals)
>
Argh, I *knew* it was that simply. I'm astonished how far I can get with
Scheme while still falling over these basics.
Thanks for not noticeably raising the eyebrows.
Urs