Skip to content

Instantly share code, notes, and snippets.

@skatenerd
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save skatenerd/8e45271cf4d3a0dcc41f to your computer and use it in GitHub Desktop.

Select an option

Save skatenerd/8e45271cf4d3a0dcc41f to your computer and use it in GitHub Desktop.
searching stuff
[2,4,6,8,10].find do |element|
element > 5
end
#-> 6
########################################################
#Ruby Hack Night
########################################################
strings_for([8,7,3,7,8,2,9]).find do |string|
made_of_english_words?(string)
end
def made_of_english_words?(string)
#??????????!!!!!!??
end
def strings_for(numbers)
#?????!!!!!!!!??
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment