@fp-ts/data
Advanced tools
Comparing version 0.0.31 to 0.0.32
31
Chunk.js
@@ -551,3 +551,3 @@ "use strict"; | ||
_tag: "ISlice", | ||
chunk: self, | ||
chunk: self.backing.chunk, | ||
length: n, | ||
@@ -557,2 +557,13 @@ offset: self.backing.offset | ||
} | ||
case "IConcat": | ||
{ | ||
if (n > self.left.length) { | ||
return new ChunkImpl({ | ||
_tag: "IConcat", | ||
left: self.left, | ||
right: take(n - self.left.length)(self.right) | ||
}); | ||
} | ||
return take(n)(self.left); | ||
} | ||
default: | ||
@@ -594,2 +605,13 @@ { | ||
} | ||
case "IConcat": | ||
{ | ||
if (n > self.left.length) { | ||
return drop(n - self.left.length)(self.right); | ||
} | ||
return new ChunkImpl({ | ||
_tag: "IConcat", | ||
left: drop(n)(self.left), | ||
right: self.right | ||
}); | ||
} | ||
default: | ||
@@ -1219,8 +1241,3 @@ { | ||
const thatA = toReadonlyArray(that); | ||
const len = Math.min(selfA.length, thatA.length); | ||
const res = new Array(len); | ||
for (let i = 0; i < len; i++) { | ||
res[i] = f(selfA[i], thatA[i]); | ||
} | ||
return unsafeFromArray(res); | ||
return (0, _Function.pipe)(selfA, RA.zipWith(thatA, f), unsafeFromArray); | ||
}; | ||
@@ -1227,0 +1244,0 @@ /** |
{ | ||
"name": "@fp-ts/data", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
1880351
36796