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

The Haskell haters' fallacies

Name: Anonymous 2012-02-06 15:49

1. Haskell is purely functional.
No.

2. Static typing sucks.
No.

3. Haskell is hard to learn.
Go scrub another toilet you mental midget.

4. You go scrub another toilet you mental midget!
Ergo you're wrong, bitch.

Name: Anonymous 2012-03-18 8:16

>>37
Here's a simpler implementation which actually works:

vecadd = map sum . transpose

If you want a polyvariadic function this works (by Oleg):

class BuildList a r | r-> a where
  build' :: [a] -> a -> r

instance BuildList a [a] where
  build' l x = reverse$ x:l

instance BuildList a r => BuildList a (a->r) where
  build' l x y = build'(x:l) y

--build :: forall r a. (BuildList a r) => a -> r
build x = build' [] x


And how it can be used:

vecadd $ build [1, 2, 3] [4, 5, 6] [7, 8, 9]

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