[plt-scheme] HtDP: Another question on 10.1.9

From: Carl Eastlund (cce at ccs.neu.edu)
Date: Fri Sep 19 20:29:06 EDT 2008

On Fri, Sep 19, 2008 at 10:51 AM, Grant Rettke <grettke at acm.org> wrote:
>
> I followed (abused?) a recipe by using cond and having the first
> clause handle any amount under 100. It looks like this:
>
> (cond
>    [(< n 100) <cents part goes here>]
>    [else (cons <dollar amount and natural recusion occur here>)])

Natural recursion?  What's so natural about it?

-- 
Carl Eastlund


Posted on the users mailing list.