[racket] Super basic question about strings
On Wed, Nov 17, 2010 at 4:00 PM, Matthias Felleisen
<matthias at ccs.neu.edu> wrote:
> (define (alist->string.v5 alist)
> (string-join (map (lambda (x) (string-append (symbol->string (car x)) "=" (number->string (cdr x)))) alist) " "))
don't you guys think it would be slightly more readable if string-join
accepted the glue string as first argument? Lists always come last in
list-consuming functions like fold or map, precisely because they can
grow large...