In examples.Sample Outline 2, position the cursor bar at "Subhead 1.1" and execute:
op.collapse ()
» true
Notice that all of the subheads below Subhead 1.1 disappear from the display; the next heading appears to be Subhead 1.2.
In examples.Sample Outline 1, position the cursor bar at "Subhead 2, Summit 2" and execute:
op.collapse ()
» false
The display does not change and the function returns false because this subhead had no subheads to collapse.