Either

Last updated

What is Either?

The Either class in Scala is used to represent a value of one of two possible types (a disjoint union). An instance of Either is either an instance of scala.util.Left or scala.util.Right.

Free resources to learn Either

More in stage 11: Error Handling

Either: common questions

Can I learn Either in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Either in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this Either tutorial for beginners?

It is lesson 62 of 165 in the free Scala roadmap, in stage 11, Error Handling. If you are new to Scala, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me