flattenIntoProfile
open fun <R : Any, RESULT : SerialSegmentOps<R, RESULT>> flattenIntoProfile(ctor: (Timeline<Segment<R>, RESULT>) -> RESULT, f: (T) -> R): RESULT
(DOC) Converts the payload objects into segments and flattens them into a serial profile.
After the payload objects are converted into segments, any overlapping segments are resolved by overwriting the earlier segment with the later segment.
Parameters
ctor
the constructor of the result timeline
f
a function which converts a payload object into the value of the resulting segment