{"action":"opened","issue":{"url":"https://api.github.com/repos/javaslang/javaslang/issues/1524","repository_url":"https://api.github.com/repos/javaslang/javaslang","labels_url":"https://api.github.com/repos/javaslang/javaslang/issues/1524/labels{/name}","comments_url":"https://api.github.com/repos/javaslang/javaslang/issues/1524/comments","events_url":"https://api.github.com/repos/javaslang/javaslang/issues/1524/events","html_url":"https://github.com/javaslang/javaslang/issues/1524","id":172756787,"number":1524,"title":"Extend `Vector` to implement `Queue` and `Stack`, similarly to Java's `ArrayDeque`","user":{"login":"paplorinc","id":1841944,"avatar_url":"https://avatars.githubusercontent.com/u/1841944?v=3","gravatar_id":"","url":"https://api.github.com/users/paplorinc","html_url":"https://github.com/paplorinc","followers_url":"https://api.github.com/users/paplorinc/followers","following_url":"https://api.github.com/users/paplorinc/following{/other_user}","gists_url":"https://api.github.com/users/paplorinc/gists{/gist_id}","starred_url":"https://api.github.com/users/paplorinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paplorinc/subscriptions","organizations_url":"https://api.github.com/users/paplorinc/orgs","repos_url":"https://api.github.com/users/paplorinc/repos","events_url":"https://api.github.com/users/paplorinc/events{/privacy}","received_events_url":"https://api.github.com/users/paplorinc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-23T17:18:40Z","updated_at":"2016-08-23T17:18:40Z","closed_at":null,"body":"Since `Vector` has symmetrical `prepend`-`append` and `head`-`last` operations, it's well suited for an `ArrayDeque` alternative.\r\n\r\nThe only required change is to add a `peekFirst` and `peekLast` operations to the corresponding interfaces -- otherwise `peek` would be ambiguous.\r\nIt's how the `Deque` interface does it also: \r\nhttp://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8-b132/java/util/Deque.java#Deque.peekFirst%28%29\r\n\r\nI personally would unify the two interfaces slightly more: Java's [`Deque`](http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8-b132/java/util/Deque.java) would be a good place to start.\r\nSee also: https://github.com/javaslang/javaslang/issues/1523\r\n\r\nA draft PR has been provided for convenience:\r\n"}}
{"actor":{"display_login":"paplorinc"}}