Skip to content

Conversation

@1guzzy
Copy link

@1guzzy 1guzzy commented May 10, 2019

No description provided.


def fetch_CD_animals(input)
#implement your solution here
input.find_all{ |animal| animal[0] == 'c' || animal[0] == 'd'}
Copy link
Member

Choose a reason for hiding this comment

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

The String#start_with? method can simplify this a bit.

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