Skip to content

Conversation

@dtaylor73
Copy link

No description provided.

Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

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

Nice work! You hit all the learning goals here.

i = 0
boolean_value = true

if array1 == nil && array2 == nil

Choose a reason for hiding this comment

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

this could be simiplified a bit with:

if array1.nil? && array2.nil?
  return true
elsif array1.nil? || array2.nil? # if one or the other is nil, but not both
  return false

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