[racket] Why does this tail recursive list length function fail at cdr l at end of list?

From: Daniel Prager (daniel.a.prager at gmail.com)
Date: Wed Nov 20 06:52:17 EST 2013

Replace the expression (null? 1) with (null? l). You appear to have typed 1
(one) where you meant l (ell).
As a general rule-of-thumb a name such as lst or a-list will reduce the
risk of this kind of error.

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131120/cfe1db5b/attachment.html>

Posted on the users mailing list.