{"action":"created","issue":{"url":"https://api.github.com/repos/jlmorgan/node-lodash-fantasy/issues/28","repository_url":"https://api.github.com/repos/jlmorgan/node-lodash-fantasy","labels_url":"https://api.github.com/repos/jlmorgan/node-lodash-fantasy/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jlmorgan/node-lodash-fantasy/issues/28/comments","events_url":"https://api.github.com/repos/jlmorgan/node-lodash-fantasy/issues/28/events","html_url":"https://github.com/jlmorgan/node-lodash-fantasy/issues/28","id":248234501,"number":28,"title":"map::Just cannot be changed to Nothing","user":{"login":"GheorgheP","id":5592697,"avatar_url":"https://avatars1.githubusercontent.com/u/5592697?v=4","gravatar_id":"","url":"https://api.github.com/users/GheorgheP","html_url":"https://github.com/GheorgheP","followers_url":"https://api.github.com/users/GheorgheP/followers","following_url":"https://api.github.com/users/GheorgheP/following{/other_user}","gists_url":"https://api.github.com/users/GheorgheP/gists{/gist_id}","starred_url":"https://api.github.com/users/GheorgheP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GheorgheP/subscriptions","organizations_url":"https://api.github.com/users/GheorgheP/orgs","repos_url":"https://api.github.com/users/GheorgheP/repos","events_url":"https://api.github.com/users/GheorgheP/events{/privacy}","received_events_url":"https://api.github.com/users/GheorgheP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-06T08:54:11Z","updated_at":"2017-08-06T18:02:15Z","closed_at":null,"body":"If the `map` callback return and undefined, map return an `Nothing` instead of `Just(undefined)`\r\n\r\nE.g.:\r\n\r\n```js\r\nMaybe.from(2).map(_ => undefined) // => Nothing()\r\n```\r\nBut it should be:\r\n\r\n```js\r\nMaybe.from(2).map(_ => undefined) // => Just(undefined)\r\n```\r\n\r\n`map` cannot modify the monad, it modifies the inside value only.\r\n\r\nCurrently `map` behaviors like `chain`, but it should not. "},"comment":{"url":"https://api.github.com/repos/jlmorgan/node-lodash-fantasy/issues/comments/320522325","html_url":"https://github.com/jlmorgan/node-lodash-fantasy/issues/28#issuecomment-320522325","issue_url":"https://api.github.com/repos/jlmorgan/node-lodash-fantasy/issues/28","id":320522325,"user":{"login":"jlmorgan","id":956764,"avatar_url":"https://avatars2.githubusercontent.com/u/956764?v=4","gravatar_id":"","url":"https://api.github.com/users/jlmorgan","html_url":"https://github.com/jlmorgan","followers_url":"https://api.github.com/users/jlmorgan/followers","following_url":"https://api.github.com/users/jlmorgan/following{/other_user}","gists_url":"https://api.github.com/users/jlmorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/jlmorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlmorgan/subscriptions","organizations_url":"https://api.github.com/users/jlmorgan/orgs","repos_url":"https://api.github.com/users/jlmorgan/repos","events_url":"https://api.github.com/users/jlmorgan/events{/privacy}","received_events_url":"https://api.github.com/users/jlmorgan/received_events","type":"User","site_admin":false},"created_at":"2017-08-06T18:02:15Z","updated_at":"2017-08-06T18:02:15Z","body":"I had original thought about the approach of doing `undefined` as synonymous with `Nothing`, but then it brought in the question of how to deal with `null`. Since languages like Java and C# don't have the concept of `undefined`, but only `null`, I decided to treat the two as the same."}}
{"actor":{"display_login":"jlmorgan"}}