Re: [racket-users] variadic function who use parameters from a mother variadic function

2015-07-03 Thread Stephen Chang
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 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-joi

Re: [racket-users] variadic function who use parameters from a mother variadic function

2015-07-03 Thread Stephen Chang
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, J

[racket-users] variadic function who use parameters from a mother variadic function

2015-07-03 Thread mazert
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