{"action":"created","comment":{"url":"https://api.github.com/repos/javaslang/javaslang/pulls/comments/48536175","id":48536175,"diff_hunk":"@@ -100,6 +100,39 @@ private Vector(int indexShift, HashArrayMappedTrie<Integer, T> trie) {\n     }\n \n     /**\n+     * Returns a Vector containing {@code n} values of a given Function {@code f}\n+     * over a range of integer values from 0 to {@code n - 1}.\n+     *\n+     * @param <T> Component type of the Vector\n+     * @param n The number of elements in the Vector\n+     * @param f The Function computing element values\n+     * @return A Vector consisting of elements {@code f(0),f(1), ..., f(n - 1)}\n+     * @throws NullPointerException if {@code n} or {@code f} are null\n+     */\n+    public static <T> Vector<T> fill(Integer n, Function<Integer, ? extends T> f) {\n+        Objects.requireNonNull(n, \"n is null\");","path":"src/main/java/javaslang/collection/Vector.java","position":14,"original_position":14,"commit_id":"1786f8aa607978f64026875c2655bb4732c793c1","original_commit_id":"1786f8aa607978f64026875c2655bb4732c793c1","user":{"login":"danieldietrich","id":743833,"avatar_url":"https://avatars.githubusercontent.com/u/743833?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldietrich","html_url":"https://github.com/danieldietrich","followers_url":"https://api.github.com/users/danieldietrich/followers","following_url":"https://api.github.com/users/danieldietrich/following{/other_user}","gists_url":"https://api.github.com/users/danieldietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldietrich/subscriptions","organizations_url":"https://api.github.com/users/danieldietrich/orgs","repos_url":"https://api.github.com/users/danieldietrich/repos","events_url":"https://api.github.com/users/danieldietrich/events{/privacy}","received_events_url":"https://api.github.com/users/danieldietrich/received_events","type":"User","site_admin":false},"body":"dito","created_at":"2015-12-29T12:03:26Z","updated_at":"2015-12-29T12:03:26Z","html_url":"https://github.com/javaslang/javaslang/pull/984#discussion_r48536175","pull_request_url":"https://api.github.com/repos/javaslang/javaslang/pulls/984","_links":{"self":{"href":"https://api.github.com/repos/javaslang/javaslang/pulls/comments/48536175"},"html":{"href":"https://github.com/javaslang/javaslang/pull/984#discussion_r48536175"},"pull_request":{"href":"https://api.github.com/repos/javaslang/javaslang/pulls/984"}}},"pull_request":{"url":"https://api.github.com/repos/javaslang/javaslang/pulls/984","id":54719921,"html_url":"https://github.com/javaslang/javaslang/pull/984","diff_url":"https://github.com/javaslang/javaslang/pull/984.diff","patch_url":"https://github.com/javaslang/javaslang/pull/984.patch","issue_url":"https://api.github.com/repos/javaslang/javaslang/issues/984","number":984,"state":"open","locked":false,"title":"Add factory method 'fill' to Seq hierarchy","user":{"login":"simonecarriero","id":1140899,"avatar_url":"https://avatars.githubusercontent.com/u/1140899?v=3","gravatar_id":"","url":"https://api.github.com/users/simonecarriero","html_url":"https://github.com/simonecarriero","followers_url":"https://api.github.com/users/simonecarriero/followers","following_url":"https://api.github.com/users/simonecarriero/following{/other_user}","gists_url":"https://api.github.com/users/simonecarriero/gists{/gist_id}","starred_url":"https://api.github.com/users/simonecarriero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonecarriero/subscriptions","organizations_url":"https://api.github.com/users/simonecarriero/orgs","repos_url":"https://api.github.com/users/simonecarriero/repos","events_url":"https://api.github.com/users/simonecarriero/events{/privacy}","received_events_url":"https://api.github.com/users/simonecarriero/received_events","type":"User","site_admin":false},"body":"WIP of #659, 'fill' should be added also to Map and Set hierarchies. Feedbacks are welcome :+1:","created_at":"2015-12-29T11:29:01Z","updated_at":"2015-12-29T12:03:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c0782cea1e5baec4e16ee9bb92e698037c57757","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/javaslang/javaslang/pulls/984/commits","review_comments_url":"https://api.github.com/repos/javaslang/javaslang/pulls/984/comments","review_comment_url":"https://api.github.com/repos/javaslang/javaslang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/javaslang/javaslang/issues/984/comments","statuses_url":"https://api.github.com/repos/javaslang/javaslang/statuses/1786f8aa607978f64026875c2655bb4732c793c1","head":{"label":"simonecarriero:659-add-factory-method-fill","ref":"659-add-factory-method-fill","sha":"1786f8aa607978f64026875c2655bb4732c793c1","user":{"login":"simonecarriero","id":1140899,"avatar_url":"https://avatars.githubusercontent.com/u/1140899?v=3","gravatar_id":"","url":"https://api.github.com/users/simonecarriero","html_url":"https://github.com/simonecarriero","followers_url":"https://api.github.com/users/simonecarriero/followers","following_url":"https://api.github.com/users/simonecarriero/following{/other_user}","gists_url":"https://api.github.com/users/simonecarriero/gists{/gist_id}","starred_url":"https://api.github.com/users/simonecarriero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonecarriero/subscriptions","organizations_url":"https://api.github.com/users/simonecarriero/orgs","repos_url":"https://api.github.com/users/simonecarriero/repos","events_url":"https://api.github.com/users/simonecarriero/events{/privacy}","received_events_url":"https://api.github.com/users/simonecarriero/received_events","type":"User","site_admin":false},"repo":{"id":48711815,"name":"javaslang","full_name":"simonecarriero/javaslang","owner":{"login":"simonecarriero","id":1140899,"avatar_url":"https://avatars.githubusercontent.com/u/1140899?v=3","gravatar_id":"","url":"https://api.github.com/users/simonecarriero","html_url":"https://github.com/simonecarriero","followers_url":"https://api.github.com/users/simonecarriero/followers","following_url":"https://api.github.com/users/simonecarriero/following{/other_user}","gists_url":"https://api.github.com/users/simonecarriero/gists{/gist_id}","starred_url":"https://api.github.com/users/simonecarriero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonecarriero/subscriptions","organizations_url":"https://api.github.com/users/simonecarriero/orgs","repos_url":"https://api.github.com/users/simonecarriero/repos","events_url":"https://api.github.com/users/simonecarriero/events{/privacy}","received_events_url":"https://api.github.com/users/simonecarriero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simonecarriero/javaslang","description":"A functional library for Java 8+ that provides persistent data types and functional control structures.","fork":true,"url":"https://api.github.com/repos/simonecarriero/javaslang","forks_url":"https://api.github.com/repos/simonecarriero/javaslang/forks","keys_url":"https://api.github.com/repos/simonecarriero/javaslang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simonecarriero/javaslang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simonecarriero/javaslang/teams","hooks_url":"https://api.github.com/repos/simonecarriero/javaslang/hooks","issue_events_url":"https://api.github.com/repos/simonecarriero/javaslang/issues/events{/number}","events_url":"https://api.github.com/repos/simonecarriero/javaslang/events","assignees_url":"https://api.github.com/repos/simonecarriero/javaslang/assignees{/user}","branches_url":"https://api.github.com/repos/simonecarriero/javaslang/branches{/branch}","tags_url":"https://api.github.com/repos/simonecarriero/javaslang/tags","blobs_url":"https://api.github.com/repos/simonecarriero/javaslang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simonecarriero/javaslang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simonecarriero/javaslang/git/refs{/sha}","trees_url":"https://api.github.com/repos/simonecarriero/javaslang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simonecarriero/javaslang/statuses/{sha}","languages_url":"https://api.github.com/repos/simonecarriero/javaslang/languages","stargazers_url":"https://api.github.com/repos/simonecarriero/javaslang/stargazers","contributors_url":"https://api.github.com/repos/simonecarriero/javaslang/contributors","subscribers_url":"https://api.github.com/repos/simonecarriero/javaslang/subscribers","subscription_url":"https://api.github.com/repos/simonecarriero/javaslang/subscription","commits_url":"https://api.github.com/repos/simonecarriero/javaslang/commits{/sha}","git_commits_url":"https://api.github.com/repos/simonecarriero/javaslang/git/commits{/sha}","comments_url":"https://api.github.com/repos/simonecarriero/javaslang/comments{/number}","issue_comment_url":"https://api.github.com/repos/simonecarriero/javaslang/issues/comments{/number}","contents_url":"https://api.github.com/repos/simonecarriero/javaslang/contents/{+path}","compare_url":"https://api.github.com/repos/simonecarriero/javaslang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simonecarriero/javaslang/merges","archive_url":"https://api.github.com/repos/simonecarriero/javaslang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simonecarriero/javaslang/downloads","issues_url":"https://api.github.com/repos/simonecarriero/javaslang/issues{/number}","pulls_url":"https://api.github.com/repos/simonecarriero/javaslang/pulls{/number}","milestones_url":"https://api.github.com/repos/simonecarriero/javaslang/milestones{/number}","notifications_url":"https://api.github.com/repos/simonecarriero/javaslang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simonecarriero/javaslang/labels{/name}","releases_url":"https://api.github.com/repos/simonecarriero/javaslang/releases{/id}","created_at":"2015-12-28T20:52:56Z","updated_at":"2015-12-28T20:52:57Z","pushed_at":"2015-12-29T11:21:06Z","git_url":"git://github.com/simonecarriero/javaslang.git","ssh_url":"git@github.com:simonecarriero/javaslang.git","clone_url":"https://github.com/simonecarriero/javaslang.git","svn_url":"https://github.com/simonecarriero/javaslang","homepage":"http://javaslang.com","size":8061,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"javaslang:master","ref":"master","sha":"455317e64dc098f4602ea18dbbdfadbf705071bc","user":{"login":"javaslang","id":5786132,"avatar_url":"https://avatars.githubusercontent.com/u/5786132?v=3","gravatar_id":"","url":"https://api.github.com/users/javaslang","html_url":"https://github.com/javaslang","followers_url":"https://api.github.com/users/javaslang/followers","following_url":"https://api.github.com/users/javaslang/following{/other_user}","gists_url":"https://api.github.com/users/javaslang/gists{/gist_id}","starred_url":"https://api.github.com/users/javaslang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javaslang/subscriptions","organizations_url":"https://api.github.com/users/javaslang/orgs","repos_url":"https://api.github.com/users/javaslang/repos","events_url":"https://api.github.com/users/javaslang/events{/privacy}","received_events_url":"https://api.github.com/users/javaslang/received_events","type":"Organization","site_admin":false},"repo":{"id":16378879,"name":"javaslang","full_name":"javaslang/javaslang","owner":{"login":"javaslang","id":5786132,"avatar_url":"https://avatars.githubusercontent.com/u/5786132?v=3","gravatar_id":"","url":"https://api.github.com/users/javaslang","html_url":"https://github.com/javaslang","followers_url":"https://api.github.com/users/javaslang/followers","following_url":"https://api.github.com/users/javaslang/following{/other_user}","gists_url":"https://api.github.com/users/javaslang/gists{/gist_id}","starred_url":"https://api.github.com/users/javaslang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javaslang/subscriptions","organizations_url":"https://api.github.com/users/javaslang/orgs","repos_url":"https://api.github.com/users/javaslang/repos","events_url":"https://api.github.com/users/javaslang/events{/privacy}","received_events_url":"https://api.github.com/users/javaslang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/javaslang/javaslang","description":"A functional library for Java 8+ that provides persistent data types and functional control structures.","fork":false,"url":"https://api.github.com/repos/javaslang/javaslang","forks_url":"https://api.github.com/repos/javaslang/javaslang/forks","keys_url":"https://api.github.com/repos/javaslang/javaslang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javaslang/javaslang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javaslang/javaslang/teams","hooks_url":"https://api.github.com/repos/javaslang/javaslang/hooks","issue_events_url":"https://api.github.com/repos/javaslang/javaslang/issues/events{/number}","events_url":"https://api.github.com/repos/javaslang/javaslang/events","assignees_url":"https://api.github.com/repos/javaslang/javaslang/assignees{/user}","branches_url":"https://api.github.com/repos/javaslang/javaslang/branches{/branch}","tags_url":"https://api.github.com/repos/javaslang/javaslang/tags","blobs_url":"https://api.github.com/repos/javaslang/javaslang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javaslang/javaslang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javaslang/javaslang/git/refs{/sha}","trees_url":"https://api.github.com/repos/javaslang/javaslang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javaslang/javaslang/statuses/{sha}","languages_url":"https://api.github.com/repos/javaslang/javaslang/languages","stargazers_url":"https://api.github.com/repos/javaslang/javaslang/stargazers","contributors_url":"https://api.github.com/repos/javaslang/javaslang/contributors","subscribers_url":"https://api.github.com/repos/javaslang/javaslang/subscribers","subscription_url":"https://api.github.com/repos/javaslang/javaslang/subscription","commits_url":"https://api.github.com/repos/javaslang/javaslang/commits{/sha}","git_commits_url":"https://api.github.com/repos/javaslang/javaslang/git/commits{/sha}","comments_url":"https://api.github.com/repos/javaslang/javaslang/comments{/number}","issue_comment_url":"https://api.github.com/repos/javaslang/javaslang/issues/comments{/number}","contents_url":"https://api.github.com/repos/javaslang/javaslang/contents/{+path}","compare_url":"https://api.github.com/repos/javaslang/javaslang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javaslang/javaslang/merges","archive_url":"https://api.github.com/repos/javaslang/javaslang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javaslang/javaslang/downloads","issues_url":"https://api.github.com/repos/javaslang/javaslang/issues{/number}","pulls_url":"https://api.github.com/repos/javaslang/javaslang/pulls{/number}","milestones_url":"https://api.github.com/repos/javaslang/javaslang/milestones{/number}","notifications_url":"https://api.github.com/repos/javaslang/javaslang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javaslang/javaslang/labels{/name}","releases_url":"https://api.github.com/repos/javaslang/javaslang/releases{/id}","created_at":"2014-01-30T14:07:25Z","updated_at":"2015-12-29T07:00:50Z","pushed_at":"2015-12-29T11:29:02Z","git_url":"git://github.com/javaslang/javaslang.git","ssh_url":"git@github.com:javaslang/javaslang.git","clone_url":"https://github.com/javaslang/javaslang.git","svn_url":"https://github.com/javaslang/javaslang","homepage":"http://javaslang.com","size":8104,"stargazers_count":512,"watchers_count":512,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":71,"forks":61,"open_issues":71,"watchers":512,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/javaslang/javaslang/pulls/984"},"html":{"href":"https://github.com/javaslang/javaslang/pull/984"},"issue":{"href":"https://api.github.com/repos/javaslang/javaslang/issues/984"},"comments":{"href":"https://api.github.com/repos/javaslang/javaslang/issues/984/comments"},"review_comments":{"href":"https://api.github.com/repos/javaslang/javaslang/pulls/984/comments"},"review_comment":{"href":"https://api.github.com/repos/javaslang/javaslang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/javaslang/javaslang/pulls/984/commits"},"statuses":{"href":"https://api.github.com/repos/javaslang/javaslang/statuses/1786f8aa607978f64026875c2655bb4732c793c1"}}}}