Created
July 21, 2019 00:09
-
-
Save calebh/a7ef1f4708312989d3d2db7f11937c34 to your computer and use it in GitHub Desktop.
Revisions
-
calebh created this gist
Jul 21, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ typeclass Monad<m> { m<b> >>= <a, b>(m<a>, Func<a, m<b>>); m<b> >> <a, b>(m<a> x, m<b> y) { return >>= <a, b>(x, (ignored) => y); } m<a> return_ <a>(a); }