Re: Lists and Recursion
- To: mathgroup at smc.vnet.net
- Subject: [mg9609] Re: Lists and Recursion
- From: Leszek Sczaniecki <lsczan at concentric.net>
- Date: Fri, 14 Nov 1997 21:39:51 -0500
- Organization: Concentric Internet Services
- Sender: owner-wri-mathgroup at wolfram.com
Joana Nunes de Almeida wrote:
> Hello,
>
> I'm doing a project for my Programming course, but I'm having some
> trouble whith one of the exercises.
> I must define a function where when we put in a list the function gives
> back the different parts of the list.
>
> exp: parts[{1,2}]
> gives: [{1,2},{1},{2},{}]
>
> NB: I must define the function recursivly
You are completely missing the point of doing exercises. BTW, are you
going to present the solution to your teacher as your own?