Next: , Previous: , Up: rope API   [Contents][Index]


2.3 Predicates

Procedure: rope-null? rope

True if rope is empty, and otherwise false. There is only one empty rope, and that is the empty string itelf. This procedure is provided because string-null? will throw an exception if it is passed a rope.

Procedure: rope-balanced? rope

True if the rope is balanced, and otherwise false. A rope of length and depth d is balanced when ℓ ≥ Fib(d) where Fib is the Fibonacci sequence.