is this a simple monad example?
- by zcaudate
This is my attempt to grok monadic functions after watching http://channel9.msdn.com/Shows/Going+Deep/Brian-Beckman-Dont-fear-the-Monads.
h uses bind to compose together two arbitrary functions f and g. What is the unit operator in this case?
;; f :: int - [str]
;; g :: str = [keyword]
;; bind :: [str] - (str - [keyword]) - [keyword]
;; h :: int…