Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I MENA HASKAL

Name: Anonymous 2011-04-20 16:00

Is there any way to do something like this in Haskell?

f g = (g 1, g 'a') -- f id should return (1, 'a')

This is a simplified example, my problem is that I have a function that takes a function of type ([a] -> b) -> b and I want to use it twice, once as ([a] -> [a]) -> [a] and once as ([a] -> a) -> a.

Thanks.

Name: Anonymous 2011-04-20 20:40

dmehosting. it has a cheap and decent linux vps plan.

y'oure welcome's

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List