diff --git a/lib/questions.rb b/lib/questions.rb index 823db48..485af2b 100644 --- a/lib/questions.rb +++ b/lib/questions.rb @@ -1,4 +1,4 @@ -# keep only the elements that start with an a +# keep only the elements that start with an 'a' def select_elements_starting_with_a(array) end @@ -22,11 +22,11 @@ def reverse_every_element_in_array(array) # given an array of student names, like ['Bob', 'Dave', 'Clive'] # give every possible pairing - in this case: # [['Bob', 'Clive'], ['Bob', 'Dave'], ['Clive', 'Dave']] -# make sure you don't have the same pairing twice, +# make sure you don't have the same pairing twice, def every_possible_pairing_of_students(array) end -# discard the first 3 elements of an array, +# discard the first 3 elements of an array, # e.g. [1, 2, 3, 4, 5, 6] becomes [4, 5, 6] def all_elements_except_first_3(array) end @@ -51,7 +51,7 @@ def get_first_half_of_string(string) def make_numbers_negative(number) end -# turn an array of numbers into two arrays of numbers, one an array of +# turn an array of numbers into two arrays of numbers, one an array of # even numbers, the other an array of odd numbers # even numbers come first # so [1, 2, 3, 4, 5, 6] becomes [[2, 4, 6], [1, 3, 5]] @@ -149,7 +149,7 @@ def format_date_nicely(date) def get_domain_name_from_email_address(email) end -# capitalize the first letter in each word of a string, +# capitalize the first letter in each word of a string, # except 'a', 'and' and 'the' # *unless* they come at the start of the start of the string, e.g. # 'the lion the witch and the wardrobe' becomes @@ -168,7 +168,7 @@ def check_a_string_for_special_characters(string) def get_upper_limit_of(range) end -# should return true for a 3 dot range like 1...20, false for a +# should return true for a 3 dot range like 1...20, false for a # normal 2 dot range def is_a_3_dot_range?(range) end @@ -218,7 +218,7 @@ def fizzbuzz_without_modulo # print the lyrics of the song 99 bottles of beer on the wall # http://www.99-bottles-of-beer.net/lyrics.html -# make sure you use the singular when you have one bottle of +# make sure you use the singular when you have one bottle of # beer on the wall, and print 'no more bottles of beer on the wall' # at the end. # (there's no RSpec test for this one)