[Haskell-cafe] standard function

2007-06-06 Thread Steffen Mazanek
Hello, is there a function f::[a-b]-a-[b] in the libraries? Couldn't find one using hoogle although this seems to be quite a common thing... Steffen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] standard function

2007-06-06 Thread Maxime Henrion
Steffen Mazanek wrote: Hello, is there a function f::[a-b]-a-[b] in the libraries? Couldn't find one using hoogle although this seems to be quite a common thing... As far as I know, there is no standard function doing that, though it is easily implemented: mapApply xs x = map ($ x) xs or

Re: [Haskell-cafe] standard function

2007-06-06 Thread Paul Moore
On 06/06/07, Steffen Mazanek [EMAIL PROTECTED] wrote: Hello, is there a function f::[a-b]-a-[b] in the libraries? Couldn't find one using hoogle although this seems to be quite a common thing... I asked basically this a few months back. Have a look at

Re: [Haskell-cafe] standard function

2007-06-06 Thread Dougal Stanton
On 06/06/07, Steffen Mazanek [EMAIL PROTECTED] wrote: Hello, is there a function f::[a-b]-a-[b] in the libraries? Couldn't find one using hoogle although this seems to be quite a common thing... Possibly it's just too small to bother putting in a separate function. let fs = [ (*2), (+2),

Re: [Haskell-cafe] standard function

2007-06-06 Thread Ilya Tsindlekht
On Wed, Jun 06, 2007 at 03:48:18PM +0200, Steffen Mazanek wrote: Hello, is there a function f::[a-b]-a-[b] in the libraries? Couldn't find one using hoogle although this seems to be quite a common thing... Steffen Just to add to what others have said, yet another way to implement it