{"action":"created","issue":{"url":"https://api.github.com/repos/zetavm/zetavm/issues/78","repository_url":"https://api.github.com/repos/zetavm/zetavm","labels_url":"https://api.github.com/repos/zetavm/zetavm/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/zetavm/zetavm/issues/78/comments","events_url":"https://api.github.com/repos/zetavm/zetavm/issues/78/events","html_url":"https://github.com/zetavm/zetavm/issues/78","id":249823765,"number":78,"title":"Array library (std/array)","user":{"login":"maximecb","id":713766,"avatar_url":"https://avatars1.githubusercontent.com/u/713766?v=4","gravatar_id":"","url":"https://api.github.com/users/maximecb","html_url":"https://github.com/maximecb","followers_url":"https://api.github.com/users/maximecb/followers","following_url":"https://api.github.com/users/maximecb/following{/other_user}","gists_url":"https://api.github.com/users/maximecb/gists{/gist_id}","starred_url":"https://api.github.com/users/maximecb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximecb/subscriptions","organizations_url":"https://api.github.com/users/maximecb/orgs","repos_url":"https://api.github.com/users/maximecb/repos","events_url":"https://api.github.com/users/maximecb/events{/privacy}","received_events_url":"https://api.github.com/users/maximecb/received_events","type":"User","site_admin":false},"labels":[{"id":591299631,"url":"https://api.github.com/repos/zetavm/zetavm/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":591299632,"url":"https://api.github.com/repos/zetavm/zetavm/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/zetavm/zetavm/milestones/2","html_url":"https://github.com/zetavm/zetavm/milestone/2","labels_url":"https://api.github.com/repos/zetavm/zetavm/milestones/2/labels","id":2702459,"number":2,"title":"Minimum Viable Product","description":"Before this project can be actively promoted, and many more contributors jump in, we should try to address the glaring flaws in ZetaVM and turn it into something more complete.","creator":{"login":"maximecb","id":713766,"avatar_url":"https://avatars1.githubusercontent.com/u/713766?v=4","gravatar_id":"","url":"https://api.github.com/users/maximecb","html_url":"https://github.com/maximecb","followers_url":"https://api.github.com/users/maximecb/followers","following_url":"https://api.github.com/users/maximecb/following{/other_user}","gists_url":"https://api.github.com/users/maximecb/gists{/gist_id}","starred_url":"https://api.github.com/users/maximecb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximecb/subscriptions","organizations_url":"https://api.github.com/users/maximecb/orgs","repos_url":"https://api.github.com/users/maximecb/repos","events_url":"https://api.github.com/users/maximecb/events{/privacy}","received_events_url":"https://api.github.com/users/maximecb/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2017-08-15T13:16:39Z","updated_at":"2017-08-17T00:51:36Z","due_on":"2017-10-15T07:00:00Z","closed_at":null},"comments":13,"created_at":"2017-08-12T17:07:45Z","updated_at":"2017-08-26T20:00:41Z","closed_at":null,"body":"In a similar vein to https://github.com/zetavm/zetavm/issues/73, we should create a library of useful array functions. These functions should, where it makes sense, use the same naming and argument conventions as the string utility library.\r\n\r\nThis library should be written in Plush, and the package should go under `std/array/0`.\r\n\r\nFunctions we probably want to see:\r\n\r\n- [x] `indexOf`\r\n\r\n- [x] `contains`: checks that `indexOf(k) != -1`\r\n\r\n- [x] `replace`\r\n\r\n- [x] `slice`: this would be analogous to `substr` ? If so, we may want to have a `slice` function in the string library as well.\r\n\r\n- [x] `concat`: concatenate two arrays together into a new one\r\n\r\n- [x] `append`: append the contents of an array to another\r\n\r\n- [x] `map`: functional-style array transformation.\r\n\r\n- [ ] `flatMap`: takes a function that produces an array of elements and concatenates the resulting elements.\r\n\r\n- [x] `forEach`: functional-style iteration.\r\n\r\n- [x] `arrayEq`: shallow array equality testing\r\n\r\n- [ ] `sort`: sort the array in-place, takes a comparison function\r\n\r\n- [ ] `binarySearch`\r\n\r\nSuggestions for functions to add or on how to better organize things are welcome."},"comment":{"url":"https://api.github.com/repos/zetavm/zetavm/issues/comments/325158705","html_url":"https://github.com/zetavm/zetavm/issues/78#issuecomment-325158705","issue_url":"https://api.github.com/repos/zetavm/zetavm/issues/78","id":325158705,"user":{"login":"jammln","id":12379906,"avatar_url":"https://avatars0.githubusercontent.com/u/12379906?v=4","gravatar_id":"","url":"https://api.github.com/users/jammln","html_url":"https://github.com/jammln","followers_url":"https://api.github.com/users/jammln/followers","following_url":"https://api.github.com/users/jammln/following{/other_user}","gists_url":"https://api.github.com/users/jammln/gists{/gist_id}","starred_url":"https://api.github.com/users/jammln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jammln/subscriptions","organizations_url":"https://api.github.com/users/jammln/orgs","repos_url":"https://api.github.com/users/jammln/repos","events_url":"https://api.github.com/users/jammln/events{/privacy}","received_events_url":"https://api.github.com/users/jammln/received_events","type":"User","site_admin":false},"created_at":"2017-08-26T20:00:41Z","updated_at":"2017-08-26T20:00:41Z","body":"What sort algorithm would you prefer to be used? Or should it depend on the size of the array?"}}
{"actor":{"display_login":"jammln"}}