Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. (function(exports) {
  2. var Prelude = PS["Prelude"];
  3. var Data_Maybe = PS["Data.Maybe"];
  4. var Control_Apply = PS["Control.Apply"];
  5. var Data_Functor = PS["Data.Functor"];
  6. var concat = function (x) {
  7. return function (y) {
  8. return x + y;
  9. };
  10. };
  11. var result = Control_Apply.apply(Data_Maybe.applyMaybe)(Data_Functor.map(Data_Maybe.functorMaybe)(concat)(new Data_Maybe.Just("a")))(new Data_Maybe.Just("b"));
  12. exports["concat"] = concat;
  13. exports["result"] = result;
  14. })(PS["Main"] = PS["Main"] || {});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement