Skip to content

Ruby Refresher#205

Open
BenNoonan1991 wants to merge 19 commits intomakersacademy:masterfrom
BenNoonan1991:master
Open

Ruby Refresher#205
BenNoonan1991 wants to merge 19 commits intomakersacademy:masterfrom
BenNoonan1991:master

Conversation

@BenNoonan1991
Copy link

No description provided.

# pairing up elements. e.g. ['a', 'b', 'c', 'd'] becomes
# {'a' => 'b', 'c' => 'd'}
def convert_array_to_a_hash(array)
hash = Hash[*array]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless assignment to variable - hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants