@thi.ng/dcons
Advanced tools
Comparing version 3.2.83 to 3.2.84
@@ -34,3 +34,6 @@ import type { Comparator, Fn, IClear, ICopy, IEmpty, IEquiv, IInto, ILength, IRelease, Predicate } from "@thi.ng/api"; | ||
abstract prepend(n: T): ConsCell<T>; | ||
/** {@inheritDoc @thi.ng/transducers#IReducible.$reduce} */ | ||
/** | ||
* Implementation of | ||
* [IReducible.$reduce](https://docs.thi.ng/umbrella/transducers/interfaces/IReducible.html#_reduce._reduce-1) | ||
*/ | ||
$reduce(rfn: ReductionFn<any, T>, acc: any): any; | ||
@@ -37,0 +40,0 @@ reduce<R>(rfn: ReductionFn<R, T>, initial: R): R; |
@@ -125,3 +125,6 @@ import { isArrayLike } from "@thi.ng/checks/is-arraylike"; | ||
} | ||
/** {@inheritDoc @thi.ng/transducers#IReducible.$reduce} */ | ||
/** | ||
* Implementation of | ||
* [IReducible.$reduce](https://docs.thi.ng/umbrella/transducers/interfaces/IReducible.html#_reduce._reduce-1) | ||
*/ | ||
$reduce(rfn, acc) { | ||
@@ -128,0 +131,0 @@ let cell = this._head; |
# Change Log | ||
- **Last updated**: 2024-01-23T15:58:27Z | ||
- **Last updated**: 2024-01-26T18:03:04Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
@@ -32,3 +32,6 @@ import type { Comparator, Fn, ICompare, IEmpty, ISeq, ISeqable, IStack } from "@thi.ng/api"; | ||
rotateRight(): this; | ||
/** {@inheritDoc @thi.ng/api#ISeqable.seq} */ | ||
/** | ||
* Implementation of | ||
* [ISeqable.seq](https://docs.thi.ng/umbrella/api/interfaces/ISeqable.html#seq.seq-1) | ||
*/ | ||
seq(start?: number, end?: number): ISeq<T> | undefined; | ||
@@ -35,0 +38,0 @@ /** |
@@ -211,3 +211,6 @@ import { compare } from "@thi.ng/compare/compare"; | ||
} | ||
/** {@inheritDoc @thi.ng/api#ISeqable.seq} */ | ||
/** | ||
* Implementation of | ||
* [ISeqable.seq](https://docs.thi.ng/umbrella/api/interfaces/ISeqable.html#seq.seq-1) | ||
*/ | ||
seq(start = 0, end = this.length) { | ||
@@ -214,0 +217,0 @@ if (start >= end || start < 0) |
{ | ||
"name": "@thi.ng/dcons", | ||
"version": "3.2.83", | ||
"version": "3.2.84", | ||
"description": "Double-linked lists with comprehensive set of operations (incl. optional self-organizing behaviors)", | ||
@@ -38,9 +38,9 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.9.17", | ||
"@thi.ng/checks": "^3.4.17", | ||
"@thi.ng/compare": "^2.2.13", | ||
"@thi.ng/api": "^8.9.18", | ||
"@thi.ng/checks": "^3.4.18", | ||
"@thi.ng/compare": "^2.2.14", | ||
"@thi.ng/equiv": "^2.1.42", | ||
"@thi.ng/errors": "^2.4.11", | ||
"@thi.ng/random": "^3.6.24", | ||
"@thi.ng/transducers": "^8.8.21" | ||
"@thi.ng/random": "^3.6.25", | ||
"@thi.ng/transducers": "^8.8.22" | ||
}, | ||
@@ -99,3 +99,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n" | ||
"gitHead": "7426e2ae6fca5482c6eaf649872296fc89955374\n" | ||
} |
@@ -24,3 +24,6 @@ import type { Fn, ICompare, ICopy, IEmpty, ISeq } from "@thi.ng/api"; | ||
rotateRight(): this; | ||
/** {@inheritDoc @thi.ng/api#ISeqable.seq} */ | ||
/** | ||
* Implementation of | ||
* [ISeqable.seq](https://docs.thi.ng/umbrella/api/interfaces/ISeqable.html#seq.seq-1) | ||
*/ | ||
seq(): ISeq<T> | undefined; | ||
@@ -27,0 +30,0 @@ traverse(fn: Fn<ConsCell<T>, boolean | number>, start?: ConsCell<T> | undefined, end?: ConsCell<T> | undefined): ConsCell<T> | undefined; |
@@ -103,3 +103,6 @@ import { AList } from "./alist.js"; | ||
} | ||
/** {@inheritDoc @thi.ng/api#ISeqable.seq} */ | ||
/** | ||
* Implementation of | ||
* [ISeqable.seq](https://docs.thi.ng/umbrella/api/interfaces/ISeqable.html#seq.seq-1) | ||
*/ | ||
seq() { | ||
@@ -106,0 +109,0 @@ const $seq = (cell) => ({ |
@@ -9,3 +9,3 @@ import type { Fn2, Predicate } from "@thi.ng/api"; | ||
*/ | ||
type SOFn<T> = Fn2<SOL<T>, ConsCell<T>, ConsCell<T>>; | ||
export type SOFn<T> = Fn2<SOL<T>, ConsCell<T>, ConsCell<T>>; | ||
/** | ||
@@ -53,3 +53,2 @@ * Self-organizing version of {@link DCons} using given re-ordering function. | ||
export declare const defTranspose: <T>(src?: Iterable<T> | undefined) => SOL<T>; | ||
export {}; | ||
//# sourceMappingURL=sol.d.ts.map |
55195
1026
Updated@thi.ng/api@^8.9.18
Updated@thi.ng/checks@^3.4.18
Updated@thi.ng/compare@^2.2.14
Updated@thi.ng/random@^3.6.25
Updated@thi.ng/transducers@^8.8.22