Skip to content

Instantly share code, notes, and snippets.

View dbaltor's full-sized avatar

Denis Baltor dbaltor

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dbaltor on github.
  • I am dbaltor (https://keybase.io/dbaltor) on keybase.
  • I have a public key ASADGH-7Y7vXMZVIu1-3IUh-EAhx4AdaE1bbne1U1FjlKAo

To claim this, I am signing this object:

@dbaltor
dbaltor / FunctorsMonads.java
Created February 3, 2019 17:50
Implementing Monads in Java 8
import java.util.function.Function;
public class FunctorsMonads {
public static void main(String[] args) {
System.out.println(tryParse("47"));
System.out.println(tryParse("a"));
FOptional<String> str = FOptional.of("47");
System.out.println(str);