On Wed, Jul 28, 2010 at 1:44 PM, Matthias Felleisen
<[email protected]> wrote:
>
> (Nothing about futures. But may I recommend a nice and simple 'optimization':
>
>  (cond
>    [(= 1 (length values)) ...]
>
> adds quite some complexity to a recursive function over a list.
> I'd use
>
>  (empty? (rest values))
>
> instead.

This breaks on `null'.
-- 
sam th
[email protected]
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to