June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
12
Task/Word-wrap/Julia/word-wrap.julia
Normal file
12
Task/Word-wrap/Julia/word-wrap.julia
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using TextWrap
|
||||
|
||||
text = """Reformat the single paragraph in 'text' to fit in lines of no more
|
||||
than 'width' columns, and return a new string containing the entire
|
||||
wrapped paragraph. As with wrap(), tabs are expanded and other
|
||||
whitespace characters converted to space. See TextWrapper class for
|
||||
available keyword args to customize wrapping behaviour."""
|
||||
|
||||
println("# Wrapped at 80 chars")
|
||||
print_wrapped(text, width=80)
|
||||
println("\n\n# Wrapped at 70 chars")
|
||||
print_wrapped(text, width=70)
|
||||
Loading…
Add table
Add a link
Reference in a new issue