{"action":"created","issue":{"url":"https://api.github.com/repos/evilsoft/crocks/issues/9","repository_url":"https://api.github.com/repos/evilsoft/crocks","labels_url":"https://api.github.com/repos/evilsoft/crocks/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/evilsoft/crocks/issues/9/comments","events_url":"https://api.github.com/repos/evilsoft/crocks/issues/9/events","html_url":"https://github.com/evilsoft/crocks/pull/9","id":190546803,"number":9,"title":"Add some helpers for Logic and Branching","user":{"login":"evilsoft","id":3665793,"avatar_url":"https://avatars.githubusercontent.com/u/3665793?v=3","gravatar_id":"","url":"https://api.github.com/users/evilsoft","html_url":"https://github.com/evilsoft","followers_url":"https://api.github.com/users/evilsoft/followers","following_url":"https://api.github.com/users/evilsoft/following{/other_user}","gists_url":"https://api.github.com/users/evilsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/evilsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilsoft/subscriptions","organizations_url":"https://api.github.com/users/evilsoft/orgs","repos_url":"https://api.github.com/users/evilsoft/repos","events_url":"https://api.github.com/users/evilsoft/events{/privacy}","received_events_url":"https://api.github.com/users/evilsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-20T08:44:21Z","updated_at":"2016-11-20T19:10:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/evilsoft/crocks/pulls/9","html_url":"https://github.com/evilsoft/crocks/pull/9","diff_url":"https://github.com/evilsoft/crocks/pull/9.diff","patch_url":"https://github.com/evilsoft/crocks/pull/9.patch"},"body":"## It's !Logical\r\n\r\n![](https://cdn.meme.am/instances/500x/37277852.jpg)\r\n\r\nThis PR addresses this [Issue](https://github.com/evilsoft/crocks/issues/7) and adds some additional helper functions around branching:\r\n\r\n* `ifElse` - applies a given value to one of two provided function based on the result of a provided predicate.\r\n* `unless` - apples a given value to a provided provided function if a provided predicate evaluates to false.\r\n* `when` - apples a given value to a provided provided function if a provided predicate evaluates to true.\r\n\r\n💥 BONUS 💥 \r\nAlso added a `safe` function for lifting into a Maybe based on the result of a provided predicate. If evaluated to true, the value is lifted into a `Just`, otherwise a `Nothing` is provided."},"comment":{"url":"https://api.github.com/repos/evilsoft/crocks/issues/comments/261798024","html_url":"https://github.com/evilsoft/crocks/pull/9#issuecomment-261798024","issue_url":"https://api.github.com/repos/evilsoft/crocks/issues/9","id":261798024,"user":{"login":"evilsoft","id":3665793,"avatar_url":"https://avatars.githubusercontent.com/u/3665793?v=3","gravatar_id":"","url":"https://api.github.com/users/evilsoft","html_url":"https://github.com/evilsoft","followers_url":"https://api.github.com/users/evilsoft/followers","following_url":"https://api.github.com/users/evilsoft/following{/other_user}","gists_url":"https://api.github.com/users/evilsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/evilsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilsoft/subscriptions","organizations_url":"https://api.github.com/users/evilsoft/orgs","repos_url":"https://api.github.com/users/evilsoft/repos","events_url":"https://api.github.com/users/evilsoft/events{/privacy}","received_events_url":"https://api.github.com/users/evilsoft/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T19:10:22Z","updated_at":"2016-11-20T19:10:22Z","body":"![](http://spock.motifake.com/image/demotivational-poster/1207/squirrel-mindmeld-squirrel-spock-animals-hypnosis-mindmeld-demotivational-posters-1342677543.jpg)"}}
{"actor":{"display_login":"evilsoft"}}