detectEdges

open fun detectEdges(edgePredicate: NullBinaryOperation<V, V, Boolean?>): Booleans

(DOC) Uses a NullBinaryOperation as a predicate to highlight edges between segments.

The result is a Booleans profile, which is false inside segments, a gap when this profile is a gap, and possibly true, false, or a gap on segment edges according to the result of the predicate.

The predicate will be called at the edge between two adjacent segments, where the values of the left and right segments are the left and right operands of the predicate, respectively. The predicate will also be call at any edge where a segment meets a gap, in which case the appropriate operand will be null.

Return

a Booleans object that contains true on the edges indicated by the predicate

Parameters

edgePredicate

a binary operation between operands of type V that produces a boolean or null