Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPN-922: complete exercises for Functional Programming in Scala, Chapter 4 #3

Merged
merged 10 commits into from Apr 21, 2015

Commits on Apr 16, 2015

  1. errorhandling: implement and test the Option functions

    Yawar Amin committed Apr 16, 2015
    Configuration menu
    Copy the full SHA
    e644f7f View commit details
    Browse the repository at this point in the history
  2. errorhandling: implement and test Option.variance

    Yawar Amin committed Apr 16, 2015
    Configuration menu
    Copy the full SHA
    9117ffe View commit details
    Browse the repository at this point in the history
  3. errorhandling: implement and test Option.map2

    Yawar Amin committed Apr 16, 2015
    Configuration menu
    Copy the full SHA
    aa2e285 View commit details
    Browse the repository at this point in the history
  4. errorhandling: implement and test Option.sequence

    Yawar Amin committed Apr 16, 2015
    Configuration menu
    Copy the full SHA
    f783065 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2015

  1. errorhandling: implement and test traverse

    Implement sequence in terms of traverse.
    Yawar Amin committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    97b5f3f View commit details
    Browse the repository at this point in the history
  2. errorhandling: implement and test Either functions

    Implement and test map, flatMap, orElse and map2.
    Yawar Amin committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    f4d8b4f View commit details
    Browse the repository at this point in the history
  3. errorhandling: implement and test Either.sequence and Either.traverse

    Either.sequence is implemented in terms of Either.traverse, so testing
    the former is enough to test the latter.
    Yawar Amin committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    56e4dce View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1e9fcc3 View commit details
    Browse the repository at this point in the history
  5. errorhandling: simply Either.flatMap

    Using @jonas suggestion:
    #3 (comment)
    Yawar Amin committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    8adf287 View commit details
    Browse the repository at this point in the history
  6. errorhandling: simplify pattern match by ignoring parts of match

    Using @jonas suggestion:
    #3 (comment)
    Yawar Amin committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    e2ba020 View commit details
    Browse the repository at this point in the history