Skip to content

Instantly share code, notes, and snippets.

@Andrewglass1
Created August 14, 2013 16:01
Show Gist options
  • Save Andrewglass1/6232479 to your computer and use it in GitHub Desktop.
Save Andrewglass1/6232479 to your computer and use it in GitHub Desktop.
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