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

FUCKING DYNAMIC PROGRAMMING

Name: Anonymous 2009-12-16 12:05

How do I learn to do this shit?

I'm going to fail introduction to algorithms and be the disgrace of MIT...

Name: Anonymous 2009-12-16 14:52

>>9
\dick -> (.) (.) :: t -> (a1 -> b -> c) -> a1 -> (a -> b) -> a -> c

Since "dick" is unused, it's simpler just to write (.) (.) :: (a1 -> b -> c) -> a1 -> (a -> b) -> a -> c, and it's easier to comprehend if you rename the type variables.

let boobs = (.) (.) :: (b -> c -> d) -> b -> (a -> c) -> a -> d

Lets name the arguments to "boobs" f, b, g and a. It is then likely equivalent to the following definition

let boobs f b g a = f b (g a)

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