sequence type fixes and refactor
This commit is contained in:
@@ -27,8 +27,10 @@ export function sequence<T>(iterable: Iterable<T>): Sequence<T> {
|
||||
return new WrappedIterable(iterable);
|
||||
}
|
||||
|
||||
export const EMPTY = new EmptySequence<any>();
|
||||
|
||||
export function empty<T>(): Sequence<T> {
|
||||
return EmptySequence.INSTANCE;
|
||||
return EMPTY;
|
||||
}
|
||||
|
||||
export function single<T>(obj: T): Sequence<T> {
|
||||
|
||||
Reference in New Issue
Block a user