Hardcore Functional Programming in JavaScript Hardcore Functional Programming in JavaScript

Either/IO Exercises 2, 3 & 4

Brian Lonsdorf
SFJS Co-Organizer
Brian picks up the pace a bit and demonstrates a few more exercises. Exercise 2 expands on exercise 1 by adding validation. You'll validate the for a length greater than 3 and return a Right or a Left based on that validation. In exercise 3, the Either used in exercise two should be rewritten to be a functor. Exercise 4 pulls text from a user input field and strips out the spaces. - Problem: http://jsbin.com/zegat - Solution: http://jsbin.com/tosusijoje
Get Unlimited Access Now