@effect/data
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -653,4 +653,4 @@ /** | ||
export declare const every: { | ||
<A>(predicate: Predicate<A>): (self: ReadonlyArray<A>) => boolean; | ||
<A>(self: ReadonlyArray<A>, predicate: Predicate<A>): boolean; | ||
<A>(predicate: Predicate<A>): (self: Chunk<A>) => boolean; | ||
<A>(self: Chunk<A>, predicate: Predicate<A>): boolean; | ||
}; | ||
@@ -660,2 +660,9 @@ /** | ||
*/ | ||
export declare const some: { | ||
<A>(predicate: Predicate<A>): (self: Chunk<A>) => self is NonEmptyChunk<A>; | ||
<A>(self: Chunk<A>, predicate: Predicate<A>): self is NonEmptyChunk<A>; | ||
}; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export declare const join: { | ||
@@ -679,10 +686,3 @@ (sep: string): (self: Chunk<string>) => string; | ||
}; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export declare const some: { | ||
<A>(predicate: Predicate<A>): (self: Chunk<A>) => self is NonEmptyChunk<A>; | ||
<A>(self: Chunk<A>, predicate: Predicate<A>): self is NonEmptyChunk<A>; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=Chunk.d.ts.map |
10
Chunk.js
@@ -992,2 +992,7 @@ "use strict"; | ||
exports.every = every; | ||
const some = /*#__PURE__*/(0, _Function.dual)(2, (self, predicate) => RA.fromIterable(self).some(predicate)); | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
exports.some = some; | ||
const join = RA.join; | ||
@@ -1004,8 +1009,3 @@ /** | ||
const reduceRight = RA.reduceRight; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
exports.reduceRight = reduceRight; | ||
const some = RA.some; | ||
exports.some = some; | ||
//# sourceMappingURL=Chunk.js.map |
{ | ||
"name": "@effect/data", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1097,3 +1097,3 @@ /** | ||
/** | ||
* Check if a predicate holds true for every `ReadonlyArray` member. | ||
* Check if a predicate holds true for every `Iterable` member. | ||
* | ||
@@ -1104,4 +1104,4 @@ * @category predicates | ||
export declare const every: { | ||
<A>(predicate: Predicate<A>): (self: ReadonlyArray<A>) => boolean; | ||
<A>(self: ReadonlyArray<A>, predicate: Predicate<A>): boolean; | ||
<A>(predicate: Predicate<A>): (self: Iterable<A>) => boolean; | ||
<A>(self: Iterable<A>, predicate: Predicate<A>): boolean; | ||
}; | ||
@@ -1115,4 +1115,4 @@ /** | ||
export declare const some: { | ||
<A>(predicate: Predicate<A>): (self: Iterable<A>) => self is NonEmptyReadonlyArray<A>; | ||
<A>(self: Iterable<A>, predicate: Predicate<A>): self is NonEmptyReadonlyArray<A>; | ||
<A>(predicate: Predicate<A>): (self: ReadonlyArray<A>) => self is NonEmptyReadonlyArray<A>; | ||
<A>(self: ReadonlyArray<A>, predicate: Predicate<A>): self is NonEmptyReadonlyArray<A>; | ||
}; | ||
@@ -1119,0 +1119,0 @@ /** |
@@ -1269,3 +1269,3 @@ "use strict"; | ||
/** | ||
* Check if a predicate holds true for every `ReadonlyArray` member. | ||
* Check if a predicate holds true for every `Iterable` member. | ||
* | ||
@@ -1276,3 +1276,3 @@ * @category predicates | ||
exports.liftEither = liftEither; | ||
const every = /*#__PURE__*/(0, _Function.dual)(2, (self, predicate) => self.every(predicate)); | ||
const every = /*#__PURE__*/(0, _Function.dual)(2, (self, predicate) => fromIterable(self).every(predicate)); | ||
/** | ||
@@ -1285,3 +1285,3 @@ * Check if a predicate holds true for some `ReadonlyArray` member. | ||
exports.every = every; | ||
const some = /*#__PURE__*/(0, _Function.dual)(2, (self, predicate) => fromIterable(self).some(predicate)); | ||
const some = /*#__PURE__*/(0, _Function.dual)(2, (self, predicate) => self.some(predicate)); | ||
/** | ||
@@ -1288,0 +1288,0 @@ * @since 1.0.0 |
@@ -1219,4 +1219,4 @@ /** | ||
export const every: { | ||
<A>(predicate: Predicate<A>): (self: ReadonlyArray<A>) => boolean | ||
<A>(self: ReadonlyArray<A>, predicate: Predicate<A>): boolean | ||
<A>(predicate: Predicate<A>): (self: Chunk<A>) => boolean | ||
<A>(self: Chunk<A>, predicate: Predicate<A>): boolean | ||
} = RA.every | ||
@@ -1227,2 +1227,13 @@ | ||
*/ | ||
export const some: { | ||
<A>(predicate: Predicate<A>): (self: Chunk<A>) => self is NonEmptyChunk<A> | ||
<A>(self: Chunk<A>, predicate: Predicate<A>): self is NonEmptyChunk<A> | ||
} = dual( | ||
2, | ||
<A>(self: Chunk<A>, predicate: Predicate<A>): self is NonEmptyChunk<A> => RA.fromIterable(self).some(predicate) | ||
) | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export const join: { | ||
@@ -1248,9 +1259,1 @@ (sep: string): (self: Chunk<string>) => string | ||
} = RA.reduceRight | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export const some: { | ||
<A>(predicate: Predicate<A>): (self: Chunk<A>) => self is NonEmptyChunk<A> | ||
<A>(self: Chunk<A>, predicate: Predicate<A>): self is NonEmptyChunk<A> | ||
} = RA.some as any |
@@ -1781,3 +1781,3 @@ /** | ||
/** | ||
* Check if a predicate holds true for every `ReadonlyArray` member. | ||
* Check if a predicate holds true for every `Iterable` member. | ||
* | ||
@@ -1788,5 +1788,5 @@ * @category predicates | ||
export const every: { | ||
<A>(predicate: Predicate<A>): (self: ReadonlyArray<A>) => boolean | ||
<A>(self: ReadonlyArray<A>, predicate: Predicate<A>): boolean | ||
} = dual(2, <A>(self: ReadonlyArray<A>, predicate: Predicate<A>): boolean => self.every(predicate)) | ||
<A>(predicate: Predicate<A>): (self: Iterable<A>) => boolean | ||
<A>(self: Iterable<A>, predicate: Predicate<A>): boolean | ||
} = dual(2, <A>(self: Iterable<A>, predicate: Predicate<A>): boolean => fromIterable(self).every(predicate)) | ||
@@ -1800,8 +1800,7 @@ /** | ||
export const some: { | ||
<A>(predicate: Predicate<A>): (self: Iterable<A>) => self is NonEmptyReadonlyArray<A> | ||
<A>(self: Iterable<A>, predicate: Predicate<A>): self is NonEmptyReadonlyArray<A> | ||
<A>(predicate: Predicate<A>): (self: ReadonlyArray<A>) => self is NonEmptyReadonlyArray<A> | ||
<A>(self: ReadonlyArray<A>, predicate: Predicate<A>): self is NonEmptyReadonlyArray<A> | ||
} = dual( | ||
2, | ||
<A>(self: Iterable<A>, predicate: Predicate<A>): self is NonEmptyReadonlyArray<A> => | ||
fromIterable(self).some(predicate) | ||
<A>(self: ReadonlyArray<A>, predicate: Predicate<A>): self is NonEmptyReadonlyArray<A> => self.some(predicate) | ||
) | ||
@@ -1808,0 +1807,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2929354
62013