flatMap2OptionalValues

(DOC) Performs a local binary operation that produces profiles, and flattens it into a profile of the same type as this.


(DOC) Performs a local binary operation that produces profiles, and flattens it, with special treatment of gaps.

Similar to map2OptionalValues, except it expects the NullBinaryOperation to return a profile. Each nested profile is then collected on the interval it corresponds to, and the results are concatenated into a single profile.

This is useful for binary operations where at least one of the operand segments represents a value that varies within the segment, such as gov.nasa.ammos.aerie.procedural.timeline.collections.profiles.Real.

Return

a coalesced flattened profile; an instance of the return type of ctor

Parameters

W

the other operand's payload type

R

the result's payload type

RESULT

the result's timeline type

ctor

the result timeline's constructor

other

the other operand timeline

op

a binary operation between the two payload types that produces a maybe-null profile

See also