Files
ospab.host/node_modules/effect/dist/esm/ScheduleIntervals.js
2025-09-15 18:10:26 +03:00

78 lines
1.8 KiB
JavaScript

import * as internal from "./internal/schedule/intervals.js";
/**
* @since 2.0.0
* @category symbols
*/
export const IntervalsTypeId = internal.IntervalsTypeId;
/**
* Creates a new `Intervals` from a `List` of `Interval`s.
*
* @since 2.0.0
* @category constructors
*/
export const make = internal.make;
/**
* Constructs an empty list of `Interval`s.
*
* @since 2.0.0
* @category constructors
*/
export const empty = internal.empty;
/**
* Creates `Intervals` from the specified `Iterable<Interval>`.
*
* @since 2.0.0
* @category constructors
*/
export const fromIterable = internal.fromIterable;
/**
* Computes the union of this `Intervals` and that `Intervals`
*
* @since 2.0.0
* @category utils
*/
export const union = internal.union;
/**
* Produces the intersection of this `Intervals` and that `Intervals`.
*
* @since 2.0.0
* @category utils
*/
export const intersect = internal.intersect;
/**
* The start of the earliest interval in the specified `Intervals`.
*
* @since 2.0.0
* @category getters
*/
export const start = internal.start;
/**
* The end of the latest interval in the specified `Intervals`.
*
* @since 2.0.0
* @category getters
*/
export const end = internal.end;
/**
* Returns `true` if the start of this `Intervals` is before the start of that
* `Intervals`, `false` otherwise.
*
* @since 2.0.0
* @category ordering
*/
export const lessThan = internal.lessThan;
/**
* Returns `true` if this `Intervals` is non-empty, `false` otherwise.
*
* @since 2.0.0
* @category getters
*/
export const isNonEmpty = internal.isNonEmpty;
/**
* Returns the maximum of the two `Intervals` (i.e. which has the latest start).
*
* @since 2.0.0
* @category ordering
*/
export const max = internal.max;
//# sourceMappingURL=ScheduleIntervals.js.map