Skip to content

About

Simple Monad implementations for java 8

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Easy Monads in Java 8

The purpose of this project is to teach myself about Monads and Functors. And the best way to teach myself was by implementing some of the commonly used monads and functors. As a starting step my goal is to implement map and flatMap for each monad as well as show some good usage examples. I'm still undecided on implementing ap for Applicatives but if I find a very good example to showcase then I plan to do it. The examples also try to show composing monads via chaining them as method calls.

The following monads are implemented so far:

Example Usages

How to add dependency

repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.rajasharan:java8-easy-monads:master-SNAPSHOT'
}

Run examples locally

$ ./gradlew :examples:run
...

The MIT License (MIT)

About

Simple Monad implementations for java 8

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages