MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Lists and Recursion

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9444] Lists and Recursion
  • From: Joana Nunes de Almeida <JNA at mail.telepac.pt>
  • Date: Wed, 5 Nov 1997 01:57:01 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

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


  • Prev by Date: Re: Argument typing in Compile
  • Next by Date: Modifying Initial Path Setting
  • Previous by thread: Re: Question
  • Next by thread: Re: Lists and Recursion