Coding Challenge: Working with TaskEither
Let's use TaskEither in a function.
We'll cover the following...
Problem statement
Complete the application
function using the predefined functions.
The function should take the result of the checkInput
function.
- Call the
externalService
function, using theerrorMapper
to handle failures. - Uppercase the result of that call.
- Use a
getOrElse
to prefixWe got back an error:
to any error we receive.
Complete the code
Access this course and 1400+ top-rated courses and projects.