diff --git a/exercises/ch11/exercise_b.js b/exercises/ch11/exercise_b.js index 87091354..074b5f15 100644 --- a/exercises/ch11/exercise_b.js +++ b/exercises/ch11/exercise_b.js @@ -2,6 +2,7 @@ // // // eitherToTask :: Either a b -> Task a b // const eitherToTask = either(Task.rejected, Task.of); - -// findNameById :: Number -> Task Error (Either Error User) +// // findUserById :: Number -> Task Error (Either Error User) +// const findUserById = ... +// const findNameById = compose(map(map(prop('name'))), findUserById);