Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

RE: Question on Map or Apply

  • To: mathgroup at
  • Subject: [mg66392] RE: [mg66338] Question on Map or Apply
  • From: "Erickson Paul-CPTP18" <Paul.Erickson at>
  • Date: Thu, 11 May 2006 02:15:51 -0400 (EDT)
  • Sender: owner-wri-mathgroup at
  • Thread-index: AcZ0J8oukFxbWFz4Scq7ETNuHu4IAwAgGL2g

daysBetween[ a_] := DaysBetween[ a[[1]],a[[2]]]
Map[ daysBetween, list]

-----Original Message-----
From: LectorZ [mailto:lectorz at] 
To: mathgroup at
Subject: [mg66392] [mg66338] Question on Map or Apply

Hi guys,

I am trying to apply DaysBetween function to the following list:

list={{{2006, 1, 16}, {2006,
      3, 31}}, {{2006, 1, 24}, {2006, 3, 31}}, {{2005, 6, 17}, {2006, 3,

DaysBetween[list[[1, 1]], list[[1, 2]]] works well.
What I need is to apply DaysBetween on the whole list conaining 3
sublists and getting a new list as a result containing 3 numbers.



  • Prev by Date: Re: Mathematica Question
  • Next by Date: Re: Rules
  • Previous by thread: Re: Question on Map or Apply
  • Next by thread: Re: Question on Map or Apply