string split into two - part-cw/lambdanative GitHub Wiki

(string-split-into-two str)

string-split-into-two determines the best way to wrap a string between two lines. Minimizes the number of characters on each line.

Parameter Description
str String to be split

Example

Example 1: Split a long split onto two lines.

> (string-split-into-two "This is a very very long string that just goes on and on.")
("This is a very very long string" "that just goes on and on.")