Created
August 2, 2019 13:37
-
-
Save zarinfam/cfc7b1fc5f47532c13f75c3b780858db to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def echoConcat[F[_]: Monad](s1: F[String], s2: F[String]): F[String] = for { | |
x <- s1 | |
y <- s2 | |
} yield s"echo $x $y" | |
echoConcat(Option("Hello"), Option("World!")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment