Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'recursion problem in module' topicStudent Support Forum > General > Archives > "recursion problem in module"

Next Comment >Help | Reply To Topic
Author Comment/Response
Tim Cooper
02/22/07 2:33pm

trying to write a recursive procedure that counts the number of even numbers and odd numbers in a list and returns {e,o}. It works as a function with three arguments: list, init, init but when I try it using a Module it fails to return {e,o}. I have attached both attempts in a notebook...

Attachment: recursion helper.nb, URL: ,

Subject (listing for 'recursion problem in module')
Author Date Posted
recursion problem in module Tim Cooper 02/22/07 2:33pm
Re: recursion problem in module yehuda ben-s... 02/25/07 08:18am
Re: Re: recursion problem in module tim cooper 02/26/07 1:36pm
Re: recursion problem in module tim cooper 02/26/07 1:39pm
Re: Re: recursion problem in module yehuda ben-s... 02/26/07 2:35pm
Re: recursion problem in module yehuda ben-s... 02/26/07 2:29pm
Next Comment >Help | Reply To Topic