/** * @since 1.0.0 */ /** * @category symbol * @since 1.0.0 */ export declare const nonEmpty: unique symbol /** * @category model * @since 1.0.0 */ export interface NonEmptyIterable extends Iterable { readonly [nonEmpty]: A } /** * @category getters * @since 1.0.0 */ export const unprepend = (self: NonEmptyIterable): readonly [A, Iterator] => { const iterator = self[Symbol.iterator]() const next = iterator.next() if (next.done) { throw new Error("BUG: NonEmptyIterator should not be empty") } return [next.value, iterator] }