MathGroup Archive 2006

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

Search the Archive

Re: To apply a function to a List


You should read on Map is the help (and on functional programming in general
in the Mathematica book)
Map[f,l]
or
f/@l
will do that
yehuda

On 4/10/06, Francisco Javier <pacoga at ctv.es> wrote:
>
> Dear all,
>
> Let f, l be a function and a list respectively. How can we do
>
> Table[f[list[[n]]],{n,1, Length[list]}]
>
> in another way?
>
> Thanks.
>
> --
> ----
> Francisco Javier Garcia Capitin
> http://garciacapitan.auna.com
>


  • Prev by Date: Re: To apply a function to a List
  • Next by Date: Flatten and BlockProcessing
  • Previous by thread: Re: To apply a function to a List
  • Next by thread: Re: To apply a function to a List