Created
January 15, 2018 22:01
-
-
Save benharri/f29fd63e0e846ed5f25346f9bd2934bd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
string h(string s) { | |
s = string.Concat(s.Where(c => char.IsUpper(c)||char.IsDigit(c))); | |
var m = s.Length; | |
var x = new string('-', m); | |
return $"+{x}+\n|{s}|\n+{x}+\n{new string(' ', m + 1)}v"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment