[racket] Super basic question about strings

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Nov 17 13:18:28 EST 2010

9 minutes ago, namekuseijin wrote:
> 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...

It's an inheritance from `srfi/1'.  (And might trail back to things
like ELisp's `mapconcat'.)

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.