[plt-scheme] error in letrec
What is it that you are trying to do?
On Wed, Feb 18, 2009 at 12:36 PM, asit <lipun4u at gmail.com> wrote:
> To my best knowledge, I tryied to fix the following code...
>
> But could nt...plz help me !!!!
>
> (define one (list 10 20 30 40 50))
>
> (list-remove
> (lambda (ls id)
> (define len (length ls))
> (letrec ((remove
> (lambda (lis)
> (if (= (length lis) id) (car lis)
> (remove (cdr lis))
> )
> )
> ))
> )
> (remove ls)
> )
> )
>
> (list-remove one 2)
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
--
Cheers,
Marco