Created
August 14, 2013 16:01
-
-
Save Andrewglass1/6232479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pop_off_wordlet(string) | |
wordlet = string[0] | |
string[0] == '' | |
until letter_value(wordlet[-1]) >= letter_value(string[0]) | |
wordlet += string[0] | |
string[0] == '' | |
end | |
[wordlet, string] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment