From: Eric Hanchrow (eric.hanchrow at gmail.com) Date: Thu Nov 11 11:31:58 EST 2010 |
|
I find myself using this all the time; it seems it'd be handy to have built in. (define (shuffled list) (sort list < #:key (lambda (_) (random)) #:cache-keys? #t)) Thanks.
Posted on the dev mailing list. |
|