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 20:15

>>3-4,7,9-10
Why so hateful on OP? This thread is surely better than more of the half of the threads on /prog/'s front page. I don't even use Haskell, and I find it baffling that you'd want to prevent actual programming discussion.

Might I suggest you go back to /b/, and take those "sex vs programming" threads there with you too!

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