MathGroup Archive 2006

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

Search the Archive

Re: To apply a function to a List


Use Map:

Map[f, list]

or 

f/@list

On Mon, 10 Apr 2006 02:31:17 -0400 (EDT), Francisco Javier 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 García Capitán
> http://garciacapitan.auna.com





  • Prev by Date: using Legend package
  • Next by Date: Re: For Loop problem
  • Previous by thread: Re: To apply a function to a List
  • Next by thread: Re: To apply a function to a List