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

monad

Name: Anonymous 2014-03-25 4:23

What is it? Why is it so leet? Why do I need to use it for IO?

Name: Anonymous 2014-03-25 14:12

>>5
A monad is something you can connect in a sequence so that the choice of a step can depend on the results of previous steps. In other words, it's the most natural way to exress sequences of actions.
Is this a monad then?

int
something (int a)
{
  int b = somethingElse (a);
  int c = somethingElse (b);
  int d = somethingElse (c);
  return somethingElse (d);
}


It reminds me this https://en.wikipedia.org/wiki/Uniqueness_type

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