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
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
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
3 matches
Mail list logo