Actually, ~a by itself might do what you want.

(~a 1 2 3) ; => "123"

On Fri, Jul 3, 2015 at 4:18 PM, Stephen Chang <[email protected]> wrote:
> I think the call to "values" is misplaced.
>
> Here's a functioning version of foo, and a perhaps more concise alternative:
>
> (define (foo . L)
>   (let ([bar (string-join (build-list (length L) (λ (x) "~a")) "")])
>     (apply format bar L)))
>
> (define (my-foo . L)
>   (string-join (map ~a L) ""))
>
> On Fri, Jul 3, 2015 at 4:06 PM, mazert <[email protected]> wrote:
>> Hello,
>>
>> To directly go to the essential : here is an example :
>>
>> (define (foo . L)
>>   (let ([bar (string-join (build-list (length L) (λ (x) "~a")) "")])
>>     (format bar (apply values L))))
>>
>> Globally, I want to use a function who has variable parameters within a
>> function who has variable parameters too.
>>
>> It is possible ?
>> Thanks in advance.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to