Link Details

You'll see the difference you make! Login and vote now.
Link 80484 thumbnail
User 111696 avatar

By bloid
via wiki.workingmouse.com
Published: May 12 2008 / 07:44

A new data type appears in version 2.7.1 of the Scala Programming Language called scala.Either (hereon referred to as Either) that is used very often in every-day practical programming tasks. In a similar way that Scala's List and Option types are classes with one or more case class subtypes, so is Either — it has two case classes; Left and Right.
  • 9
  • 1
  • 555
  • 163

Comments

Add your comment
User 285735 avatar

Christopher20 replied ago:

0 votes Vote down Vote up Reply

please blocked this user!!!!

User 85500 avatar

andrewm replied ago:

0 votes Vote down Vote up Reply

>please blocked this user!!!!

care to elaborate? I personally found the writeup on scala disjoint types very interesting...

Andrew

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (1)