Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
12
Task/Unicode-strings/Julia/unicode-strings.julia
Normal file
12
Task/Unicode-strings/Julia/unicode-strings.julia
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
function surround(string ; border = :default)
|
||||
|
||||
ve, ho, ul, ur, dl, dr =
|
||||
border == :bold ? ("\u2503","\u2501","\u250F","\u2513","\u2517","\u251b") :
|
||||
border == :double? ("\u2551","\u2550","\u2554","\u2557","\u255a","\u255d") :
|
||||
border == :dotted? ("\u254e","\u254c","\u250c","\u2510","\u2514","\u2518") :
|
||||
("\u2502","\u2500","\u250c","\u2510","\u2514","\u2518")
|
||||
|
||||
println(ul,ho^length(string),ur,"\n",
|
||||
ve, string ,ve,"\n",
|
||||
dl,ho^length(string),dr)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue