Jump to content

Word wrap: Difference between revisions

m
→‎{{header|Tcl}}: Make assumption explicit
(→‎Tcl: Added implementation)
m (→‎{{header|Tcl}}: Make assumption explicit)
Line 78:
 
=={{header|Tcl}}==
Using a simple greedy algorithm to wrap the same text as used in the [[#Go|Go]] solution. Note that it assumes that the line length is longer than the longest word length.
<lang tcl>package require Tcl 8.5
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.