You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.
Maybe it's worth it to have something better as an example for monad, to show why would you want them in JS. Something like this maybe:
type Request = {url: String, payload: String}
let ajaxRequest = {
return: fn x = x
bind: fn (x : Request) f =
$.ajax x.url x.payload f
}
let v = (do ajaxRequest
bind value = {url: '/url/', payload: 'stuff'}
console.log value
return value
)
The text was updated successfully, but these errors were encountered:
Maybe it's worth it to have something better as an example for monad, to show why would you want them in JS. Something like this maybe:
The text was updated successfully, but these errors were encountered: