{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/1731","repository_url":"https://api.github.com/repos/ramda/ramda","labels_url":"https://api.github.com/repos/ramda/ramda/issues/1731/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1731/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/1731/events","html_url":"https://github.com/ramda/ramda/issues/1731","id":148290584,"number":1731,"title":"Exhibit Maybe in Public API","user":{"login":"jhinrichsen","id":1259869,"avatar_url":"https://avatars.githubusercontent.com/u/1259869?v=3","gravatar_id":"","url":"https://api.github.com/users/jhinrichsen","html_url":"https://github.com/jhinrichsen","followers_url":"https://api.github.com/users/jhinrichsen/followers","following_url":"https://api.github.com/users/jhinrichsen/following{/other_user}","gists_url":"https://api.github.com/users/jhinrichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhinrichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhinrichsen/subscriptions","organizations_url":"https://api.github.com/users/jhinrichsen/orgs","repos_url":"https://api.github.com/users/jhinrichsen/repos","events_url":"https://api.github.com/users/jhinrichsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhinrichsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-14T08:34:52Z","updated_at":"2016-04-15T20:22:14Z","closed_at":null,"body":"I am using immutable.js for its lazy sequences, and ramda for the functional part such as curry(). Runs like a charm. Unfortunately, neither offers a Maybe/ Optional type. There are some references in ramda's documentation to Maybe.of, but it is unclear which Maybe this refers to. There's an internal Maybe.js implementation in test/shared/Maybe.js, but that's not accessible from a regular npm install.\r\n\r\nPretty please with sugar on top make it part of the public API."},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/210628604","html_url":"https://github.com/ramda/ramda/issues/1731#issuecomment-210628604","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1731","id":210628604,"user":{"login":"buzzdecafe","id":716260,"avatar_url":"https://avatars.githubusercontent.com/u/716260?v=3","gravatar_id":"","url":"https://api.github.com/users/buzzdecafe","html_url":"https://github.com/buzzdecafe","followers_url":"https://api.github.com/users/buzzdecafe/followers","following_url":"https://api.github.com/users/buzzdecafe/following{/other_user}","gists_url":"https://api.github.com/users/buzzdecafe/gists{/gist_id}","starred_url":"https://api.github.com/users/buzzdecafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzzdecafe/subscriptions","organizations_url":"https://api.github.com/users/buzzdecafe/orgs","repos_url":"https://api.github.com/users/buzzdecafe/repos","events_url":"https://api.github.com/users/buzzdecafe/events{/privacy}","received_events_url":"https://api.github.com/users/buzzdecafe/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T20:22:14Z","updated_at":"2016-04-15T20:22:14Z","body":"why can't we both have our cake and eat it, too? if we had a function like this:\r\n\r\n```js\r\nR.makeSafe = (fn) => () => {\r\n    var rv = fn.apply(arguments)\r\n    return R.isNil(rv) ? Nothing() : Just(rv);\r\n  }\r\n```\r\n\r\nfor example: http://goo.gl/jKY7Ps\r\n\r\nI'm sure this implementation could be improved, but to my mind that squares the circle by letting the user decide."}}