Skip to content

Commit 8f62cbd

Browse files
committed
Fix some minor documentation errors
Typo: "Rakes" vs "Takes", and also replace "list" with "array" where appropriate.
1 parent bf2c332 commit 8f62cbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Data/Array.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -662,14 +662,14 @@ zipWithA
662662
-> m (Array c)
663663
zipWithA f xs ys = sequence (zipWith f xs ys)
664664

665-
-- | Rakes two lists and returns a list of corresponding pairs.
666-
-- | If one input list is short, excess elements of the longer list are
665+
-- | Takes two arrays and returns an array of corresponding pairs.
666+
-- | If one input array is short, excess elements of the longer array are
667667
-- | discarded.
668668
zip :: forall a b. Array a -> Array b -> Array (Tuple a b)
669669
zip = zipWith Tuple
670670

671-
-- | Transforms a list of pairs into a list of first components and a list of
672-
-- | second components.
671+
-- | Transforms an array of pairs into an array of first components and an
672+
-- | array of second components.
673673
unzip :: forall a b. Array (Tuple a b) -> Tuple (Array a) (Array b)
674674
unzip = uncons' (\_ -> Tuple [] []) \(Tuple a b) ts -> case unzip ts of
675675
Tuple as bs -> Tuple (a : as) (b : bs)

0 commit comments

Comments
 (0)