/** * Returns a new schedule that performs a geometric intersection on the * intervals defined by both schedules. * * @tsplus pipeable-operator effect/core/io/Schedule && * @tsplus static effect/core/io/Schedule intersect * @tsplus pipeable effect/core/io/Schedule intersect */ export function intersect( that: Schedule ) { return (self: Schedule): Schedule< readonly [State, State1], Env | Env1, In & In1, readonly [Out, Out2] > => self.intersectWith(that, (x, y) => x.intersect(y)) }