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

lol wut

Name: Anonymous 2007-04-07 5:40 ID:W8msT6i7

What the hell does '->' do? I see it in C and C++ all the time and it confuses the shit out of me.

Name: Anonymous 2007-04-07 5:46 ID:mn8bjHdM

It is used to create lambda functions. For example instead of saying:

bar xs = map foo xs
    where foo = ...

You can use a lambda function like this:

bar xs = map (\x -> ...) xs

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