write_depth/3

"write_depth( ?TermDepth, ?ListDepth, ?TermArity " )

Fine control over when to stop writing a term.

  • number of terms above;

  • number of previous items in a list;

  • maximum arity.