MathGroup Archive 2007

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

Search the Archive

a beginner's question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77768] a beginner's question
  • From: tung tran <tunganhtr at yahoo.fr>
  • Date: Sat, 16 Jun 2007 03:31:31 -0400 (EDT)

I am a beginner in Mathematica and in programming. I read the book "An Introduction to Programming with  Mathematica".
Page 155:

 FindSubsequence[lis_List, subseq_List] := Module[{p}, p = Partition[lis, Length[subseq], 1]; Position[p, Flatten[{___, subseq, ___}]]]

I want to know more about the role of Module function and " ; "  in these lines. I have read documentation about Module function but it doesn't help me much in understanding this line of code. Thanks for helping me ! 

Regards, 
Tung Anh

             


  • Prev by Date: Re: default display of reals & last command behavior in terminal
  • Next by Date: FFT of the piecewise step function
  • Previous by thread: Re: Is TableForm broken?
  • Next by thread: Re: a beginner's question