{"action":"created","issue":{"url":"https://api.github.com/repos/hylang/hy/issues/788","labels_url":"https://api.github.com/repos/hylang/hy/issues/788/labels{/name}","comments_url":"https://api.github.com/repos/hylang/hy/issues/788/comments","events_url":"https://api.github.com/repos/hylang/hy/issues/788/events","html_url":"https://github.com/hylang/hy/pull/788","id":66228600,"number":788,"title":"Added ap-pipe and ap-compose macros","user":{"login":"nicolas-p","id":11431580,"avatar_url":"https://avatars.githubusercontent.com/u/11431580?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-p","html_url":"https://github.com/nicolas-p","followers_url":"https://api.github.com/users/nicolas-p/followers","following_url":"https://api.github.com/users/nicolas-p/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-p/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-p/subscriptions","organizations_url":"https://api.github.com/users/nicolas-p/orgs","repos_url":"https://api.github.com/users/nicolas-p/repos","events_url":"https://api.github.com/users/nicolas-p/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-p/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hylang/hy/milestones/7","html_url":"https://github.com/hylang/hy/milestones/0.10.2","labels_url":"https://api.github.com/repos/hylang/hy/milestones/7/labels","id":897765,"number":7,"title":"0.10.2","description":null,"creator":{"login":"Foxboron","id":1042946,"avatar_url":"https://avatars.githubusercontent.com/u/1042946?v=3","gravatar_id":"","url":"https://api.github.com/users/Foxboron","html_url":"https://github.com/Foxboron","followers_url":"https://api.github.com/users/Foxboron/followers","following_url":"https://api.github.com/users/Foxboron/following{/other_user}","gists_url":"https://api.github.com/users/Foxboron/gists{/gist_id}","starred_url":"https://api.github.com/users/Foxboron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Foxboron/subscriptions","organizations_url":"https://api.github.com/users/Foxboron/orgs","repos_url":"https://api.github.com/users/Foxboron/repos","events_url":"https://api.github.com/users/Foxboron/events{/privacy}","received_events_url":"https://api.github.com/users/Foxboron/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":7,"state":"open","created_at":"2014-12-09T19:07:34Z","updated_at":"2015-07-23T13:08:18Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-04-03T21:11:06Z","updated_at":"2015-07-23T15:59:04Z","closed_at":"2015-07-23T13:08:18Z","pull_request":{"url":"https://api.github.com/repos/hylang/hy/pulls/788","html_url":"https://github.com/hylang/hy/pull/788","diff_url":"https://github.com/hylang/hy/pull/788.diff","patch_url":"https://github.com/hylang/hy/pull/788.patch"},"body":"In relation to #787\r\n\r\n`ap-pipe` is an anaphoric version of `->` and `->>`. It is useful for specifying where the argument should go in each expression.\r\n```hy\r\n(ap-pipe 3 (+ it 1) (/ 5 it))\r\n=> 1.25\r\n(ap-pipe [4 5 6 7] (list (rest it)) (len it))\r\n=> 3\r\n```\r\n\r\n`ap-compose` returns a function which is the composition of several anaphoric forms.\r\n```hy\r\n(def op (ap-compose (+ it 1) (* it 3)))\r\n(op 2)\r\n=> 9\r\n```"},"comment":{"url":"https://api.github.com/repos/hylang/hy/issues/comments/124151107","html_url":"https://github.com/hylang/hy/pull/788#issuecomment-124151107","issue_url":"https://api.github.com/repos/hylang/hy/issues/788","id":124151107,"user":{"login":"Foxboron","id":1042946,"avatar_url":"https://avatars.githubusercontent.com/u/1042946?v=3","gravatar_id":"","url":"https://api.github.com/users/Foxboron","html_url":"https://github.com/Foxboron","followers_url":"https://api.github.com/users/Foxboron/followers","following_url":"https://api.github.com/users/Foxboron/following{/other_user}","gists_url":"https://api.github.com/users/Foxboron/gists{/gist_id}","starred_url":"https://api.github.com/users/Foxboron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Foxboron/subscriptions","organizations_url":"https://api.github.com/users/Foxboron/orgs","repos_url":"https://api.github.com/users/Foxboron/repos","events_url":"https://api.github.com/users/Foxboron/events{/privacy}","received_events_url":"https://api.github.com/users/Foxboron/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T15:59:03Z","updated_at":"2015-07-23T15:59:03Z","body":"@hylang/core pop the wine bottles!\r\n:wine_glass: :fireworks: :beers: :balloon: :tada: :dancer: "}}