Skip to content

Instantly share code, notes, and snippets.

@takeshik
Created October 22, 2012 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takeshik/3932909 to your computer and use it in GitHub Desktop.
Save takeshik/3932909 to your computer and use it in GitHub Desktop.
var dic = Enumerable.Range(char.MinValue, char.MaxValue)
.Select(i =>
{
Console.Clear();
Console.CursorTop = 0;
Console.CursorLeft = 0;
Console.Write((char) i);
return Console.CursorTop != 0 || Console.CursorLeft != 1
? Tuple.Create(i, Console.CursorLeft)
: null;
})
.Where(t => t != null)
.ToDictionary(_ => _.Item1, _ => _.Item2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment