Sign in Go Pro

Functional programming in Kotlin with Arrow

Error handling - Validations with Validated

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

Sometimes you need to perform a bunch of parallel validations and render the errors of all of them all together, instead of one by one. So you are looking for error accumulation. Validated is very handy for that. Learn:

  • How to perform parallel validations over a typical example using a form.
  • How to validate all of them all together in the end and render the errors at the same time.
  • How Validated is very similar to Either where it handles two fixed cases: Valid and Invalid.
  • Learn how to accumulate errors with Validated using a non empty list for the Invalid type.

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Functional programming in Kotlin with Arrow