Skip to content

Commit 01aec12

Browse files
Rename selfZipWith to offsetWith
1 parent a05c1d5 commit 01aec12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Data/Array/AtLeast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const rawIndex = function(i) {
44
}
55
}
66

7-
export const selfZipWithImpl = function (offset) {
7+
export const offsetWithImpl = function (offset) {
88
return function (operator) {
99
return function(xs) {
1010
let xsLen = xs.length;

src/Data/Array/AtLeast.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module Data.Array.ArrayAL
5555
, nubByEq
5656

5757
, zipWith
58-
, selfZipWith
58+
, offsetWith
5959

6060
, checkValid
6161
) where
@@ -499,11 +499,11 @@ zipWith
499499
-> ArrayAL n c
500500
zipWith fn (ArrayAL xs) (ArrayAL ys) = ArrayAL $ Array.zipWith fn xs ys
501501

502-
foreign import selfZipWithImpl
502+
foreign import offsetWithImpl
503503
:: a b. Int -> (a -> a -> b) -> Array a -> Array b
504504

505505
-- | Apply a binary function to offset copies of an `ArrayAL`
506-
selfZipWith
506+
offsetWith
507507
:: (n1 :: Int)
508508
(n2 :: Int)
509509
(offset :: Int)
@@ -519,7 +519,7 @@ selfZipWith
519519
-> (a1 -> a1 -> a2)
520520
-> ArrayAL n1 a1
521521
-> ArrayAL n2 a2
522-
selfZipWith i f (ArrayAL xs) = ArrayAL $ selfZipWithImpl (reflectType i) f xs
522+
offsetWith i f (ArrayAL xs) = ArrayAL $ offsetWithImpl (reflectType i) f xs
523523

524524
-- | Return true if the length of the underlying array is less than or equal to
525525
-- | the type-level minimum length. This should always be true and this function

0 commit comments

Comments
 (0)