{"action":"created","comment":{"url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/comments/48697379","id":48697379,"diff_hunk":"@@ -5,44 +5,78 @@ instructor_notes: Feel free to re-organize the headings (or add/remove headings)\n \n # What is an Array?\n \n-Replace me with your response...\n+The Array is a data object that stores an ordered list of values.\n \n # What are some examples of information that would be Arrays as opposed to some other data type?\n \n-Replace me with your response...\n+words, integers, floats, strings\n \n # What is one way, using Ruby, to retrieve the 6th element in an Array? How about the 8th element? What happens if you try to retrieve the value of the _9999th_ element (or some element that doesn't exist in the array)?\n \n-Replace me with your response...\n+arr = [1, 2, 3, 4, 5, 6, 7]\n+puts arr[6]\n+\n+or\n+\n+You can address different elements in an array using numbers and than call those numbers.\n+\n+arr = []\n+\n+arr[0] = \"a\"\n+arr[1] = \"b\"\n+arr[6] = \"c\"\n+\n+puts array_assign[6] returns c\n+\n+If you try to call an element that doesn't exsist its returns nil\n \n # The previous question asks about finding, for example, the 6th element in an Array. Is it possible to find the **-6th** (Notice the negative symbol!) element in an Array? What does that even mean?\n \n-Replace me with your response...\n+Yes. It means the - is calling to the last element of an array as -1 so it will return the 6th element from the end.\n \n # How would you perform an operation on every element inside an Array?\n \n-Replace me with your response...\n+By using the each and map methods.","path":"lib/arrays.md","position":40,"original_position":40,"commit_id":"9fe4486ed1464269dd2a09dfa9ac308605d7eb84","original_commit_id":"9fe4486ed1464269dd2a09dfa9ac308605d7eb84","user":{"login":"sumeetjain","id":29388,"avatar_url":"https://avatars.githubusercontent.com/u/29388?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeetjain","html_url":"https://github.com/sumeetjain","followers_url":"https://api.github.com/users/sumeetjain/followers","following_url":"https://api.github.com/users/sumeetjain/following{/other_user}","gists_url":"https://api.github.com/users/sumeetjain/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetjain/subscriptions","organizations_url":"https://api.github.com/users/sumeetjain/orgs","repos_url":"https://api.github.com/users/sumeetjain/repos","events_url":"https://api.github.com/users/sumeetjain/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetjain/received_events","type":"User","site_admin":false},"body":"What is the difference between the `each` and `map` methods? Or are they the same?","created_at":"2016-01-03T21:20:15Z","updated_at":"2016-01-03T21:20:15Z","html_url":"https://github.com/omahacodeschool/ruby-prompt__arrays/pull/4#discussion_r48697379","pull_request_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/comments/48697379"},"html":{"href":"https://github.com/omahacodeschool/ruby-prompt__arrays/pull/4#discussion_r48697379"},"pull_request":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/4","id":54772846,"html_url":"https://github.com/omahacodeschool/ruby-prompt__arrays/pull/4","diff_url":"https://github.com/omahacodeschool/ruby-prompt__arrays/pull/4.diff","patch_url":"https://github.com/omahacodeschool/ruby-prompt__arrays/pull/4.patch","issue_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/issues/4","number":4,"state":"open","locked":false,"title":"Done","user":{"login":"wig-wig","id":16271666,"avatar_url":"https://avatars.githubusercontent.com/u/16271666?v=3","gravatar_id":"","url":"https://api.github.com/users/wig-wig","html_url":"https://github.com/wig-wig","followers_url":"https://api.github.com/users/wig-wig/followers","following_url":"https://api.github.com/users/wig-wig/following{/other_user}","gists_url":"https://api.github.com/users/wig-wig/gists{/gist_id}","starred_url":"https://api.github.com/users/wig-wig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wig-wig/subscriptions","organizations_url":"https://api.github.com/users/wig-wig/orgs","repos_url":"https://api.github.com/users/wig-wig/repos","events_url":"https://api.github.com/users/wig-wig/events{/privacy}","received_events_url":"https://api.github.com/users/wig-wig/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-30T02:07:43Z","updated_at":"2016-01-03T21:20:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e06ca04ce77ed3792f5791c557c8efef0fac0b16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/4/commits","review_comments_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/4/comments","review_comment_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/issues/4/comments","statuses_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/statuses/9fe4486ed1464269dd2a09dfa9ac308605d7eb84","head":{"label":"wig-wig:master","ref":"master","sha":"9fe4486ed1464269dd2a09dfa9ac308605d7eb84","user":{"login":"wig-wig","id":16271666,"avatar_url":"https://avatars.githubusercontent.com/u/16271666?v=3","gravatar_id":"","url":"https://api.github.com/users/wig-wig","html_url":"https://github.com/wig-wig","followers_url":"https://api.github.com/users/wig-wig/followers","following_url":"https://api.github.com/users/wig-wig/following{/other_user}","gists_url":"https://api.github.com/users/wig-wig/gists{/gist_id}","starred_url":"https://api.github.com/users/wig-wig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wig-wig/subscriptions","organizations_url":"https://api.github.com/users/wig-wig/orgs","repos_url":"https://api.github.com/users/wig-wig/repos","events_url":"https://api.github.com/users/wig-wig/events{/privacy}","received_events_url":"https://api.github.com/users/wig-wig/received_events","type":"User","site_admin":false},"repo":{"id":48770336,"name":"ruby-prompt__arrays","full_name":"wig-wig/ruby-prompt__arrays","owner":{"login":"wig-wig","id":16271666,"avatar_url":"https://avatars.githubusercontent.com/u/16271666?v=3","gravatar_id":"","url":"https://api.github.com/users/wig-wig","html_url":"https://github.com/wig-wig","followers_url":"https://api.github.com/users/wig-wig/followers","following_url":"https://api.github.com/users/wig-wig/following{/other_user}","gists_url":"https://api.github.com/users/wig-wig/gists{/gist_id}","starred_url":"https://api.github.com/users/wig-wig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wig-wig/subscriptions","organizations_url":"https://api.github.com/users/wig-wig/orgs","repos_url":"https://api.github.com/users/wig-wig/repos","events_url":"https://api.github.com/users/wig-wig/events{/privacy}","received_events_url":"https://api.github.com/users/wig-wig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wig-wig/ruby-prompt__arrays","description":null,"fork":true,"url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays","forks_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/forks","keys_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/teams","hooks_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/hooks","issue_events_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/issues/events{/number}","events_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/events","assignees_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/assignees{/user}","branches_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/branches{/branch}","tags_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/tags","blobs_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/git/refs{/sha}","trees_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/statuses/{sha}","languages_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/languages","stargazers_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/stargazers","contributors_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/contributors","subscribers_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/subscribers","subscription_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/subscription","commits_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/commits{/sha}","git_commits_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/git/commits{/sha}","comments_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/comments{/number}","issue_comment_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/issues/comments{/number}","contents_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/contents/{+path}","compare_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/merges","archive_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/downloads","issues_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/issues{/number}","pulls_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/pulls{/number}","milestones_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/milestones{/number}","notifications_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/labels{/name}","releases_url":"https://api.github.com/repos/wig-wig/ruby-prompt__arrays/releases{/id}","created_at":"2015-12-29T22:44:26Z","updated_at":"2015-12-12T15:58:43Z","pushed_at":"2015-12-30T02:07:03Z","git_url":"git://github.com/wig-wig/ruby-prompt__arrays.git","ssh_url":"git@github.com:wig-wig/ruby-prompt__arrays.git","clone_url":"https://github.com/wig-wig/ruby-prompt__arrays.git","svn_url":"https://github.com/wig-wig/ruby-prompt__arrays","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"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":"omahacodeschool:master","ref":"master","sha":"bdcd65d473e574aa04daa313d230e25c0f0864e1","user":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":47884383,"name":"ruby-prompt__arrays","full_name":"omahacodeschool/ruby-prompt__arrays","owner":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omahacodeschool/ruby-prompt__arrays","description":null,"fork":false,"url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays","forks_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/forks","keys_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/teams","hooks_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/hooks","issue_events_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/issues/events{/number}","events_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/events","assignees_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/assignees{/user}","branches_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/branches{/branch}","tags_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/tags","blobs_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/git/refs{/sha}","trees_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/statuses/{sha}","languages_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/languages","stargazers_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/stargazers","contributors_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/contributors","subscribers_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/subscribers","subscription_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/subscription","commits_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/commits{/sha}","git_commits_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/git/commits{/sha}","comments_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/comments{/number}","issue_comment_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/issues/comments{/number}","contents_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/contents/{+path}","compare_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/merges","archive_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/downloads","issues_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/issues{/number}","pulls_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls{/number}","milestones_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/milestones{/number}","notifications_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/labels{/name}","releases_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/releases{/id}","created_at":"2015-12-12T15:58:43Z","updated_at":"2015-12-12T15:58:43Z","pushed_at":"2016-01-01T23:30:40Z","git_url":"git://github.com/omahacodeschool/ruby-prompt__arrays.git","ssh_url":"git@github.com:omahacodeschool/ruby-prompt__arrays.git","clone_url":"https://github.com/omahacodeschool/ruby-prompt__arrays.git","svn_url":"https://github.com/omahacodeschool/ruby-prompt__arrays","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/4"},"html":{"href":"https://github.com/omahacodeschool/ruby-prompt__arrays/pull/4"},"issue":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/issues/4"},"comments":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__arrays/statuses/9fe4486ed1464269dd2a09dfa9ac308605d7eb84"}}}}