[plt-scheme] error in letrec

From: Marco Morazan (morazanm at gmail.com)
Date: Fri Feb 20 08:31:33 EST 2009

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


Posted on the users mailing list.