### sub fold ```perl6 sub fold( $string, :$width where { ... } = 79 ) returns Str ``` Fold a string to contain no lines longer than the given width. class $string ------------- The string to fold. class :$width where { ... } = 79 -------------------------------- The maximum width of lines in the text. ### multi sub line-length ```perl6 multi sub line-length( $ ) returns Int ``` Get the length of a line array. If the array does not exist yet, it is clearly empty, and this sub returns 0. ### multi sub line-length ```perl6 multi sub line-length( @line ) returns Int ``` Get the length of a line array. This counts the characters of all words in the array, and adds up the number of spaces required for it to be a human representable line. class @line ----------- The line array, containing any number of words. NAME ==== String::Fold AUTHOR ====== Patrick Spek