[racket] Why does this tail recursive list length function fail at cdr l at end of list?
Oops - dup.
Didn't see Pierpaolo's reply.
Dan
On Wed, Nov 20, 2013 at 10:52 PM, Daniel Prager
<daniel.a.prager at gmail.com>wrote:
> 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
>
--
*Daniel Prager*
Agile/Lean Coaching, Software Development and Leadership
Twitter: @agilejitsu <https://twitter.com/agilejitsu>
Blog: agile-jitsu.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131120/233338a6/attachment.html>