[Haskell-cafe] List of functions
Sebastian Sylvan
sebastian.sylvan at gmail.com
Wed Aug 31 05:48:00 EDT 2005
On 8/31/05, Dinh Tien Tuan Anh <tuananhbirm at hotmail.com> wrote:
>
> >Something like (untested)...
> >
> >xs <- zipWith ($) forkIO (map (\f -> f x y) funs)
> >tids <- sequence xs
> >
>
>
> what does "zipWith ($)" do ?
$ is function application, so zipWith ($) will "zip" a list of
functions with a list of arguments, by applying the functions to the
arguments pair-wise, producing a list of results.
/S
--
Sebastian Sylvan
+46(0)736-818655
UIN: 44640862
More information about the Haskell-Cafe
mailing list