Created
September 26, 2014 04:41
-
-
Save ybur-yug/5a9f5809d46d21798db5 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
var alphabet = "abcdefghijklmnopqrstuvwxyz"; | |
); | |
var query = from a in alphabet | |
from b in alphabet | |
from c in alphabet | |
select "" + a + b + c; | |
foreach (var item in query) | |
{ | |
Console.WriteLine(item); | |
} | |
// C# | |
all_3_letter_word_combos = [('a'..'z').to_a, | |
('aa'..'zz').to_a, | |
('aaa'..'zzz').to_a].flatten! | |
all_3_letter_words_combos.map { |w| puts w } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment