@pacote/linked-list
Advanced tools
Comparing version 0.7.5 to 0.7.6
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.7.6](https://github.com/PacoteJS/pacote/compare/@pacote/linked-list@0.7.5...@pacote/linked-list@0.7.6) (2025-02-25) | ||
**Note:** Version bump only for package @pacote/linked-list | ||
## [0.7.5](https://github.com/PacoteJS/pacote/compare/@pacote/linked-list@0.7.4...@pacote/linked-list@0.7.5) (2024-10-05) | ||
@@ -8,0 +12,0 @@ |
@@ -15,3 +15,3 @@ import { type Option } from '@pacote/option'; | ||
* | ||
* @param list Linked list. | ||
* @param cons Linked list. | ||
* | ||
@@ -18,0 +18,0 @@ * @returns The rest of the list. |
@@ -28,3 +28,3 @@ "use strict"; | ||
* | ||
* @param list Linked list. | ||
* @param cons Linked list. | ||
* | ||
@@ -31,0 +31,0 @@ * @returns The rest of the list. |
@@ -15,3 +15,3 @@ import { type Option } from '@pacote/option'; | ||
* | ||
* @param list Linked list. | ||
* @param cons Linked list. | ||
* | ||
@@ -18,0 +18,0 @@ * @returns The rest of the list. |
@@ -10,3 +10,3 @@ import { None, Some } from '@pacote/option'; | ||
* | ||
* @param list Linked list. | ||
* @param cons Linked list. | ||
* | ||
@@ -13,0 +13,0 @@ * @returns The rest of the list. |
{ | ||
"name": "@pacote/linked-list", | ||
"description": "Immutable linked lists.", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"sideEffects": false, | ||
@@ -37,5 +37,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@pacote/option": "^4.0.3" | ||
"@pacote/option": "^4.0.4" | ||
}, | ||
"gitHead": "4bbe789f078b3e6ee5d56870eaf46ca2e78b596f" | ||
"gitHead": "d57d56b739b2d1663b120ef853877077e3dcbd13" | ||
} |
@@ -21,3 +21,3 @@ import { None, type Option, Some } from '@pacote/option' | ||
* | ||
* @param list Linked list. | ||
* @param cons Linked list. | ||
* | ||
@@ -63,3 +63,3 @@ * @returns The rest of the list. | ||
index: number, | ||
collection: LinkedList<T>, | ||
collection: LinkedList<T> | ||
): R { | ||
@@ -69,9 +69,9 @@ return isEmpty(current) | ||
: recursiveReduce( | ||
callback(acc, car(current), index, collection), | ||
callback, | ||
cdr(current), | ||
step, | ||
index + step, | ||
collection, | ||
) | ||
callback(acc, car(current), index, collection), | ||
callback, | ||
cdr(current), | ||
step, | ||
index + step, | ||
collection | ||
) | ||
} | ||
@@ -100,3 +100,3 @@ | ||
initial: R, | ||
list: LinkedList<T>, | ||
list: LinkedList<T> | ||
): R { | ||
@@ -129,3 +129,3 @@ return recursiveReduce(initial, callback, list, 1, 0, list) | ||
front: LinkedList<T>, | ||
back: LinkedList<T>, | ||
back: LinkedList<T> | ||
): LinkedList<T> { | ||
@@ -172,3 +172,3 @@ return reduce((acc, value) => prepend(value, acc), back, reverse(front)) | ||
initial: R, | ||
list: LinkedList<T>, | ||
list: LinkedList<T> | ||
): R { | ||
@@ -193,3 +193,3 @@ const lastIndex = length(list) - 1 | ||
callback: MapCallback<T, R>, | ||
list: LinkedList<T>, | ||
list: LinkedList<T> | ||
): LinkedList<R> { | ||
@@ -201,4 +201,4 @@ return reverse( | ||
emptyList(), | ||
list, | ||
), | ||
list | ||
) | ||
) | ||
@@ -221,3 +221,3 @@ } | ||
callback: MapCallback<T, LinkedList<R>>, | ||
list: LinkedList<T>, | ||
list: LinkedList<T> | ||
): LinkedList<R> { | ||
@@ -229,4 +229,4 @@ return reverse( | ||
emptyList(), | ||
list, | ||
), | ||
list | ||
) | ||
) | ||
@@ -250,3 +250,3 @@ } | ||
predicate: PredicateFunction<T>, | ||
list: LinkedList<T>, | ||
list: LinkedList<T> | ||
): LinkedList<T> { | ||
@@ -258,4 +258,4 @@ return reverse( | ||
emptyList(), | ||
list, | ||
), | ||
list | ||
) | ||
) | ||
@@ -262,0 +262,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
155816
Updated@pacote/option@^4.0.4