Skip to content

string split into two

Chris Petersen edited this page Oct 16, 2014 · 1 revision

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.")
Clone this wiki locally