chickadee » rope » read-rope

read-rope #!optional port lengthprocedure

Reads a rope from the given port, or current-input-port if no port is specified.

If a numerical length argument is given, at most that many characters are read.

The resulting rope is guaranteed to be balanced.