Coding Challenge: Working with TaskEither
Let's use TaskEither in a function.
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
Get hands-on with 1400+ tech skills courses.