{"action":"closed","number":57,"pull_request":{"url":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/57","id":32636022,"html_url":"https://github.com/mirage/ocaml-cstruct/pull/57","diff_url":"https://github.com/mirage/ocaml-cstruct/pull/57.diff","patch_url":"https://github.com/mirage/ocaml-cstruct/pull/57.patch","issue_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/57","number":57,"state":"closed","locked":false,"title":"Concatenators","user":{"login":"pqwy","id":325535,"avatar_url":"https://avatars.githubusercontent.com/u/325535?v=3","gravatar_id":"","url":"https://api.github.com/users/pqwy","html_url":"https://github.com/pqwy","followers_url":"https://api.github.com/users/pqwy/followers","following_url":"https://api.github.com/users/pqwy/following{/other_user}","gists_url":"https://api.github.com/users/pqwy/gists{/gist_id}","starred_url":"https://api.github.com/users/pqwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pqwy/subscriptions","organizations_url":"https://api.github.com/users/pqwy/orgs","repos_url":"https://api.github.com/users/pqwy/repos","events_url":"https://api.github.com/users/pqwy/events{/privacy}","received_events_url":"https://api.github.com/users/pqwy/received_events","type":"User","site_admin":false},"body":"`concat` and  `append` from `nocrypto`, as [discussed](https://github.com/mirleft/ocaml-nocrypto/issues/50#issuecomment-89523111).\r\n\r\n`concat` has a very value-like semantics in that it maps `[x]` to `x` itself without making a copy. This is beneficial in `nocrypto` as single-buffer situations can be treated as special cases of multi-buffer ones without that little bit of overhead. It's also documented, but maybe bears pointing out explicitly.\r\n\r\nI personally like the operator form of `append`, `<+>`, but didn't include it not to extend the API too much. If others think they too prefer `foo <+> bar` to `append foo bar`, I can either add an alias or completely rename it.","created_at":"2015-04-04T16:39:54Z","updated_at":"2015-06-02T08:25:50Z","closed_at":"2015-06-02T08:25:50Z","merged_at":"2015-06-02T08:25:50Z","merge_commit_sha":"acf146a9699885ebba8445a2e6792d13ab942b4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/57/commits","review_comments_url":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/57/comments","review_comment_url":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/57/comments","statuses_url":"https://api.github.com/repos/mirage/ocaml-cstruct/statuses/8d88ce958b86718aa9a6c239e692b7791f6b36b9","head":{"label":"pqwy:concatenators","ref":"concatenators","sha":"8d88ce958b86718aa9a6c239e692b7791f6b36b9","user":{"login":"pqwy","id":325535,"avatar_url":"https://avatars.githubusercontent.com/u/325535?v=3","gravatar_id":"","url":"https://api.github.com/users/pqwy","html_url":"https://github.com/pqwy","followers_url":"https://api.github.com/users/pqwy/followers","following_url":"https://api.github.com/users/pqwy/following{/other_user}","gists_url":"https://api.github.com/users/pqwy/gists{/gist_id}","starred_url":"https://api.github.com/users/pqwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pqwy/subscriptions","organizations_url":"https://api.github.com/users/pqwy/orgs","repos_url":"https://api.github.com/users/pqwy/repos","events_url":"https://api.github.com/users/pqwy/events{/privacy}","received_events_url":"https://api.github.com/users/pqwy/received_events","type":"User","site_admin":false},"repo":{"id":21665553,"name":"ocaml-cstruct","full_name":"pqwy/ocaml-cstruct","owner":{"login":"pqwy","id":325535,"avatar_url":"https://avatars.githubusercontent.com/u/325535?v=3","gravatar_id":"","url":"https://api.github.com/users/pqwy","html_url":"https://github.com/pqwy","followers_url":"https://api.github.com/users/pqwy/followers","following_url":"https://api.github.com/users/pqwy/following{/other_user}","gists_url":"https://api.github.com/users/pqwy/gists{/gist_id}","starred_url":"https://api.github.com/users/pqwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pqwy/subscriptions","organizations_url":"https://api.github.com/users/pqwy/orgs","repos_url":"https://api.github.com/users/pqwy/repos","events_url":"https://api.github.com/users/pqwy/events{/privacy}","received_events_url":"https://api.github.com/users/pqwy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pqwy/ocaml-cstruct","description":"Map OCaml arrays onto C-like structs","fork":true,"url":"https://api.github.com/repos/pqwy/ocaml-cstruct","forks_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/forks","keys_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/teams","hooks_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/hooks","issue_events_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/issues/events{/number}","events_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/events","assignees_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/assignees{/user}","branches_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/branches{/branch}","tags_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/tags","blobs_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/git/refs{/sha}","trees_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/statuses/{sha}","languages_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/languages","stargazers_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/stargazers","contributors_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/contributors","subscribers_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/subscribers","subscription_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/subscription","commits_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/commits{/sha}","git_commits_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/git/commits{/sha}","comments_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/comments{/number}","issue_comment_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/issues/comments{/number}","contents_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/contents/{+path}","compare_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/merges","archive_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/downloads","issues_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/issues{/number}","pulls_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/pulls{/number}","milestones_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/milestones{/number}","notifications_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/labels{/name}","releases_url":"https://api.github.com/repos/pqwy/ocaml-cstruct/releases{/id}","created_at":"2014-07-09T19:20:24Z","updated_at":"2015-02-11T17:17:56Z","pushed_at":"2015-05-30T19:28:08Z","git_url":"git://github.com/pqwy/ocaml-cstruct.git","ssh_url":"git@github.com:pqwy/ocaml-cstruct.git","clone_url":"https://github.com/pqwy/ocaml-cstruct.git","svn_url":"https://github.com/pqwy/ocaml-cstruct","homepage":null,"size":1062,"stargazers_count":0,"watchers_count":0,"language":"OCaml","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mirage:master","ref":"master","sha":"0f28ceebe18a7fd6106976ff31a6ea203ece444d","user":{"login":"mirage","id":131943,"avatar_url":"https://avatars.githubusercontent.com/u/131943?v=3","gravatar_id":"","url":"https://api.github.com/users/mirage","html_url":"https://github.com/mirage","followers_url":"https://api.github.com/users/mirage/followers","following_url":"https://api.github.com/users/mirage/following{/other_user}","gists_url":"https://api.github.com/users/mirage/gists{/gist_id}","starred_url":"https://api.github.com/users/mirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirage/subscriptions","organizations_url":"https://api.github.com/users/mirage/orgs","repos_url":"https://api.github.com/users/mirage/repos","events_url":"https://api.github.com/users/mirage/events{/privacy}","received_events_url":"https://api.github.com/users/mirage/received_events","type":"Organization","site_admin":false},"repo":{"id":4266022,"name":"ocaml-cstruct","full_name":"mirage/ocaml-cstruct","owner":{"login":"mirage","id":131943,"avatar_url":"https://avatars.githubusercontent.com/u/131943?v=3","gravatar_id":"","url":"https://api.github.com/users/mirage","html_url":"https://github.com/mirage","followers_url":"https://api.github.com/users/mirage/followers","following_url":"https://api.github.com/users/mirage/following{/other_user}","gists_url":"https://api.github.com/users/mirage/gists{/gist_id}","starred_url":"https://api.github.com/users/mirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirage/subscriptions","organizations_url":"https://api.github.com/users/mirage/orgs","repos_url":"https://api.github.com/users/mirage/repos","events_url":"https://api.github.com/users/mirage/events{/privacy}","received_events_url":"https://api.github.com/users/mirage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirage/ocaml-cstruct","description":"Map OCaml arrays onto C-like structs","fork":false,"url":"https://api.github.com/repos/mirage/ocaml-cstruct","forks_url":"https://api.github.com/repos/mirage/ocaml-cstruct/forks","keys_url":"https://api.github.com/repos/mirage/ocaml-cstruct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirage/ocaml-cstruct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirage/ocaml-cstruct/teams","hooks_url":"https://api.github.com/repos/mirage/ocaml-cstruct/hooks","issue_events_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/events{/number}","events_url":"https://api.github.com/repos/mirage/ocaml-cstruct/events","assignees_url":"https://api.github.com/repos/mirage/ocaml-cstruct/assignees{/user}","branches_url":"https://api.github.com/repos/mirage/ocaml-cstruct/branches{/branch}","tags_url":"https://api.github.com/repos/mirage/ocaml-cstruct/tags","blobs_url":"https://api.github.com/repos/mirage/ocaml-cstruct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirage/ocaml-cstruct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirage/ocaml-cstruct/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirage/ocaml-cstruct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirage/ocaml-cstruct/statuses/{sha}","languages_url":"https://api.github.com/repos/mirage/ocaml-cstruct/languages","stargazers_url":"https://api.github.com/repos/mirage/ocaml-cstruct/stargazers","contributors_url":"https://api.github.com/repos/mirage/ocaml-cstruct/contributors","subscribers_url":"https://api.github.com/repos/mirage/ocaml-cstruct/subscribers","subscription_url":"https://api.github.com/repos/mirage/ocaml-cstruct/subscription","commits_url":"https://api.github.com/repos/mirage/ocaml-cstruct/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirage/ocaml-cstruct/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirage/ocaml-cstruct/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirage/ocaml-cstruct/contents/{+path}","compare_url":"https://api.github.com/repos/mirage/ocaml-cstruct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirage/ocaml-cstruct/merges","archive_url":"https://api.github.com/repos/mirage/ocaml-cstruct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirage/ocaml-cstruct/downloads","issues_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues{/number}","pulls_url":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls{/number}","milestones_url":"https://api.github.com/repos/mirage/ocaml-cstruct/milestones{/number}","notifications_url":"https://api.github.com/repos/mirage/ocaml-cstruct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirage/ocaml-cstruct/labels{/name}","releases_url":"https://api.github.com/repos/mirage/ocaml-cstruct/releases{/id}","created_at":"2012-05-08T22:11:25Z","updated_at":"2015-04-27T20:12:26Z","pushed_at":"2015-06-02T08:25:50Z","git_url":"git://github.com/mirage/ocaml-cstruct.git","ssh_url":"git@github.com:mirage/ocaml-cstruct.git","clone_url":"https://github.com/mirage/ocaml-cstruct.git","svn_url":"https://github.com/mirage/ocaml-cstruct","homepage":null,"size":1587,"stargazers_count":28,"watchers_count":28,"language":"OCaml","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":11,"forks":17,"open_issues":11,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/57"},"html":{"href":"https://github.com/mirage/ocaml-cstruct/pull/57"},"issue":{"href":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/57"},"comments":{"href":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirage/ocaml-cstruct/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/mirage/ocaml-cstruct/statuses/8d88ce958b86718aa9a6c239e692b7791f6b36b9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"samoht","id":103693,"avatar_url":"https://avatars.githubusercontent.com/u/103693?v=3","gravatar_id":"","url":"https://api.github.com/users/samoht","html_url":"https://github.com/samoht","followers_url":"https://api.github.com/users/samoht/followers","following_url":"https://api.github.com/users/samoht/following{/other_user}","gists_url":"https://api.github.com/users/samoht/gists{/gist_id}","starred_url":"https://api.github.com/users/samoht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samoht/subscriptions","organizations_url":"https://api.github.com/users/samoht/orgs","repos_url":"https://api.github.com/users/samoht/repos","events_url":"https://api.github.com/users/samoht/events{/privacy}","received_events_url":"https://api.github.com/users/samoht/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":2,"additions":71,"deletions":7,"changed_files":3}}