{"action":"opened","issue":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/694","repository_url":"https://api.github.com/repos/rustwasm/wasm-bindgen","labels_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/694/labels{/name}","comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/694/comments","events_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/694/events","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/694","id":349947698,"node_id":"MDU6SXNzdWUzNDk5NDc2OTg=","number":694,"title":"Support converting slices in rust into `obj.apply([args])` in javascript","user":{"login":"derekdreery","id":1392222,"node_id":"MDQ6VXNlcjEzOTIyMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/1392222?v=4","gravatar_id":"","url":"https://api.github.com/users/derekdreery","html_url":"https://github.com/derekdreery","followers_url":"https://api.github.com/users/derekdreery/followers","following_url":"https://api.github.com/users/derekdreery/following{/other_user}","gists_url":"https://api.github.com/users/derekdreery/gists{/gist_id}","starred_url":"https://api.github.com/users/derekdreery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekdreery/subscriptions","organizations_url":"https://api.github.com/users/derekdreery/orgs","repos_url":"https://api.github.com/users/derekdreery/repos","events_url":"https://api.github.com/users/derekdreery/events{/privacy}","received_events_url":"https://api.github.com/users/derekdreery/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-13T09:12:25Z","updated_at":"2018-08-13T09:12:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Support the following example\r\n\r\n```rust\r\n#[wasm_bindgen(apply_ending_slice)]\r\npub fn add(first: u32, second: u32, rest: &[u32]) -> u32 {\r\n    rest.iter().sum() + first + second\r\n}\r\n```\r\n\r\ncallable from javascript as\r\n\r\n```js\r\nimport { add } from './wasm';\r\n\r\nconsole.log(add(1, 2, 3, 4, 5)); // prints 15\r\n```"}}
{"actor":{"display_login":"derekdreery"}}