linqx 0.2.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +181 -87
- package/dist/core/dictionary.d.ts +14 -0
- package/dist/core/enumerable.d.ts +9 -0
- package/dist/core/enumerator.d.ts +10 -0
- package/dist/core/grouping.d.ts +11 -0
- package/dist/core/lookup.d.ts +12 -0
- package/dist/core/memoized-enumerable.d.ts +12 -0
- package/dist/core/ordered-enumerable.d.ts +14 -0
- package/dist/core/shared-enumerable.d.ts +10 -0
- package/dist/extensions.d.ts +18 -0
- package/dist/extensions.js +13 -0
- package/dist/factories/choice.d.ts +8 -0
- package/dist/factories/cycle.d.ts +8 -0
- package/dist/factories/defer.d.ts +8 -0
- package/dist/factories/empty.d.ts +3 -0
- package/dist/factories/from.d.ts +46 -0
- package/dist/factories/generate.d.ts +9 -0
- package/dist/factories/make.d.ts +8 -0
- package/dist/factories/matches.d.ts +14 -0
- package/dist/factories/range-down.d.ts +10 -0
- package/dist/factories/range-to.d.ts +12 -0
- package/dist/factories/range.d.ts +10 -0
- package/dist/factories/repeat-with-finalize.d.ts +9 -0
- package/dist/factories/repeat.d.ts +9 -0
- package/dist/factories/to-infinity.d.ts +9 -0
- package/dist/factories/to-negative-infinity.d.ts +9 -0
- package/dist/factories/unfold.d.ts +9 -0
- package/dist/index.d.ts +87 -3
- package/dist/index.js +2 -4
- package/dist/internal/create-enumerable.d.ts +3 -0
- package/dist/internal/functions.d.ts +6 -0
- package/dist/internal/to-iterable.d.ts +2 -0
- package/dist/operators/aggregate-by.d.ts +2 -0
- package/dist/operators/aggregate.d.ts +2 -0
- package/dist/operators/all.d.ts +2 -0
- package/dist/operators/alternate.d.ts +2 -0
- package/dist/operators/any.d.ts +2 -0
- package/dist/operators/append.d.ts +2 -0
- package/dist/operators/as-enumerable.d.ts +2 -0
- package/dist/operators/average.d.ts +2 -0
- package/dist/operators/buffer.d.ts +2 -0
- package/dist/operators/cast.d.ts +2 -0
- package/dist/operators/catch-error.d.ts +2 -0
- package/dist/operators/choose.d.ts +2 -0
- package/dist/operators/chunk.d.ts +2 -0
- package/dist/operators/concat.d.ts +2 -0
- package/dist/operators/contains.d.ts +2 -0
- package/dist/operators/count-by.d.ts +2 -0
- package/dist/operators/count.d.ts +2 -0
- package/dist/operators/create-ordered-enumerable.d.ts +2 -0
- package/dist/operators/default-if-empty.d.ts +2 -0
- package/dist/operators/distinct-by.d.ts +2 -0
- package/dist/operators/distinct-until-changed.d.ts +2 -0
- package/dist/operators/distinct.d.ts +2 -0
- package/dist/operators/do-action.d.ts +3 -0
- package/dist/operators/element-at-or-default.d.ts +2 -0
- package/dist/operators/element-at.d.ts +2 -0
- package/dist/operators/except-by.d.ts +2 -0
- package/dist/operators/except.d.ts +2 -0
- package/dist/operators/finally-action.d.ts +2 -0
- package/dist/operators/first-or-default.d.ts +2 -0
- package/dist/operators/first.d.ts +2 -0
- package/dist/operators/flatten.d.ts +2 -0
- package/dist/operators/for-each.d.ts +3 -0
- package/dist/operators/force.d.ts +2 -0
- package/dist/operators/group-by.d.ts +2 -0
- package/dist/operators/group-join.d.ts +2 -0
- package/dist/operators/index-of.d.ts +2 -0
- package/dist/operators/index.d.ts +2 -0
- package/dist/operators/insert.d.ts +2 -0
- package/dist/operators/intersect-by.d.ts +2 -0
- package/dist/operators/intersect.d.ts +2 -0
- package/dist/operators/is-empty.d.ts +2 -0
- package/dist/operators/join-with.d.ts +2 -0
- package/dist/operators/join.d.ts +2 -0
- package/dist/operators/last-index-of.d.ts +2 -0
- package/dist/operators/last-or-default.d.ts +2 -0
- package/dist/operators/last.d.ts +2 -0
- package/dist/operators/left-join.d.ts +2 -0
- package/dist/operators/let-bind.d.ts +2 -0
- package/dist/operators/log.d.ts +2 -0
- package/dist/operators/map.d.ts +2 -0
- package/dist/operators/max-by.d.ts +2 -0
- package/dist/operators/max.d.ts +2 -0
- package/dist/operators/memoize.d.ts +2 -0
- package/dist/operators/merge.d.ts +2 -0
- package/dist/operators/min-by.d.ts +2 -0
- package/dist/operators/min.d.ts +2 -0
- package/dist/operators/of-type.d.ts +2 -0
- package/dist/operators/operators.d.ts +208 -0
- package/dist/operators/order-by-descending.d.ts +2 -0
- package/dist/operators/order-by.d.ts +2 -0
- package/dist/operators/page.d.ts +2 -0
- package/dist/operators/pairwise.d.ts +2 -0
- package/dist/operators/partition-by.d.ts +2 -0
- package/dist/operators/position.d.ts +2 -0
- package/dist/operators/prepend.d.ts +2 -0
- package/dist/operators/reverse.d.ts +2 -0
- package/dist/operators/right-join.d.ts +2 -0
- package/dist/operators/scan.d.ts +2 -0
- package/dist/operators/select-many.d.ts +2 -0
- package/dist/operators/select.d.ts +2 -0
- package/dist/operators/sequence-equal.d.ts +2 -0
- package/dist/operators/share.d.ts +2 -0
- package/dist/operators/shuffle.d.ts +2 -0
- package/dist/operators/single-or-default.d.ts +2 -0
- package/dist/operators/single.d.ts +2 -0
- package/dist/operators/skip-last.d.ts +2 -0
- package/dist/operators/skip-while.d.ts +2 -0
- package/dist/operators/skip.d.ts +2 -0
- package/dist/operators/sum.d.ts +2 -0
- package/dist/operators/take-except-last.d.ts +2 -0
- package/dist/operators/take-from-last.d.ts +2 -0
- package/dist/operators/take-last.d.ts +2 -0
- package/dist/operators/take-while.d.ts +2 -0
- package/dist/operators/take.d.ts +2 -0
- package/dist/operators/then-by-descending.d.ts +2 -0
- package/dist/operators/then-by.d.ts +2 -0
- package/dist/operators/to-array.d.ts +2 -0
- package/dist/operators/to-dictionary.d.ts +2 -0
- package/dist/operators/to-joined-string.d.ts +2 -0
- package/dist/operators/to-json-string.d.ts +2 -0
- package/dist/operators/to-lookup.d.ts +2 -0
- package/dist/operators/to-map.d.ts +2 -0
- package/dist/operators/to-object.d.ts +2 -0
- package/dist/operators/to-set.d.ts +2 -0
- package/dist/operators/trace.d.ts +2 -0
- package/dist/operators/traverse-breadth-first.d.ts +2 -0
- package/dist/operators/traverse-depth-first.d.ts +2 -0
- package/dist/operators/union-by.d.ts +2 -0
- package/dist/operators/union.d.ts +2 -0
- package/dist/operators/weighted-sample.d.ts +2 -0
- package/dist/operators/where-if.d.ts +2 -0
- package/dist/operators/where.d.ts +2 -0
- package/dist/operators/with-neighbors.d.ts +2 -0
- package/dist/operators/zip.d.ts +2 -0
- package/dist/src-D_Mk3oMP.js +1597 -0
- package/dist/types.d.ts +1154 -0
- package/dist/utils.d.ts +56 -0
- package/package.json +18 -11
- package/dist/linq.d.ts +0 -256
- package/dist/linq.js +0 -3085
- package/dist/linqx.d.ts +0 -36
- package/dist/linqx.js +0 -153
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { IEnumerable, IGrouping } from '../types.js';
|
|
2
|
+
export declare function partitionBy<T, TKey, TElement = T, TResult = IGrouping<TKey, TElement>>(this: IEnumerable<T>, keySelector: (element: T) => TKey, elementSelector?: (element: T) => TElement, resultSelector?: ((key: TKey, elements: IEnumerable<TElement>) => TResult) | undefined, compareSelector?: (key: TKey) => unknown): IEnumerable<TResult>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { EnumerableInput, IEnumerable } from '../types.js';
|
|
2
|
+
export declare function rightJoin<TOuter, TInner, TKey, TResult>(this: IEnumerable<TOuter>, inner: EnumerableInput<TInner>, outerKeySelector: (outer: TOuter) => TKey, innerKeySelector: (inner: TInner) => TKey, resultSelector: (outer: TOuter | null, inner: TInner) => TResult, compareSelector?: (key: TKey) => unknown): IEnumerable<TResult>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { EnumerableInput, IEnumerable } from '../types.js';
|
|
2
|
+
export declare function selectMany<T, TCollection, TResult = TCollection>(this: IEnumerable<T>, collectionSelector: (element: T, index: number) => EnumerableInput<TCollection>, resultSelector?: (outer: T, inner: TCollection) => TResult): IEnumerable<TCollection | TResult>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { IDictionary, IEnumerable } from '../types.js';
|
|
2
|
+
export declare function toDictionary<T, TKey, TValue = T>(this: IEnumerable<T>, keySelector: (element: T) => TKey, elementSelector?: (element: T) => TValue, compareSelector?: (key: TKey) => unknown): IDictionary<TKey, TValue>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { IEnumerable, ILookup } from '../types.js';
|
|
2
|
+
export declare function toLookup<T, TKey, TElement = T>(this: IEnumerable<T>, keySelector: (element: T) => TKey, elementSelector?: (element: T) => TElement, compareSelector?: (key: TKey) => unknown): ILookup<TKey, TElement>;
|