TreasureTrails/node_modules/effect/dist/esm/NonEmptyIterable.js
2026-03-18 09:02:21 -05:00

16 lines
No EOL
420 B
JavaScript

/**
* @since 2.0.0
*/
/**
* @category getters
* @since 2.0.0
*/
export const unprepend = self => {
const iterator = self[Symbol.iterator]();
const next = iterator.next();
if (next.done) {
throw new Error("BUG: NonEmptyIterator should not be empty - please report an issue at https://github.com/Effect-TS/effect/issues");
}
return [next.value, iterator];
};
//# sourceMappingURL=NonEmptyIterable.js.map