From: Vincent St-Amour (stamourv at ccs.neu.edu) Date: Thu Oct 14 13:10:42 EDT 2010 |
|
At Thu, 14 Oct 2010 13:56:16 -0300, namekuseijin wrote: > (all-d (filter ns (lambda (n) (char=? n d)))) > (all-but-d (filter ns (lambda (n) (not (char=? n d)))))) Sounds like a job for partition. http://doc.racket-lang.org/reference/pairs.html?q=partition#%28def._%28%28lib._racket/list..rkt%29._partition%29%29 Vincent
Posted on the users mailing list. |
|