MathGroup Archive 2006

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

Search the Archive

Re: Question on Map or Apply


On 5/10/06 at 6:33 AM, lectorz at mail.ru (LectorZ) wrote:

>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, 31}}}

>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.

the following works

In[3]:=
DaysBetween[Sequence@@#]&/@list

Out[3]=
{74,66,287}
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Question on Map or Apply
  • Next by Date: Checking the sign of a Mathematical expression
  • Previous by thread: Re: Question on Map or Apply
  • Next by thread: Re: Question on Map or Apply