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

Haskell point-free

Name: Anonymous 2009-12-25 17:12

I have this:


ops :: [[Char] -> [Char]]
...
fun :: [Char] -> [[Char]]
fun str = zipWith ($) ops $ words str


How do I write fun in a point-free style? Dropping the argument gives me type errors.

Name: Anonymous 2009-12-25 21:06

As long as you dont return a fucking pointer to the stack... its fine.

Have fun but its better to use pointers.

Each time some fucktarded c++ "programmer" goes arround passing huge classes as value a copy constructor dies.

Name: Anonymous 2010-01-07 3:01

>>17
The fact that id x = x implies that (id x) y = (x) y, which is just a goofier (and syntactically illegal) way of saying id x y = x y.

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