File tree Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -365,12 +365,12 @@ instance Traversable.Traversable Vector where
365
365
-- Length information
366
366
-- ------------------
367
367
368
- -- | /O(1)/ Yield the length of the vector.
368
+ -- | /O(1)/ Yield the length of the vector
369
369
length :: Vector a -> Int
370
370
{-# INLINE length #-}
371
371
length = G. length
372
372
373
- -- | /O(1)/ Test whether a vector if empty
373
+ -- | /O(1)/ Test whether a vector is empty
374
374
null :: Vector a -> Bool
375
375
{-# INLINE null #-}
376
376
null = G. null
@@ -588,8 +588,8 @@ unfoldr :: (b -> Maybe (a, b)) -> b -> Vector a
588
588
{-# INLINE unfoldr #-}
589
589
unfoldr = G. unfoldr
590
590
591
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
592
- -- generator function to the a seed. The generator function yields 'Just' the
591
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
592
+ -- the generator function to a seed. The generator function yields 'Just' the
593
593
-- next element and the new seed or 'Nothing' if there are no more elements.
594
594
--
595
595
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
Original file line number Diff line number Diff line change @@ -218,12 +218,12 @@ mkNoRepType = mkNorepType
218
218
-- Length information
219
219
-- ------------------
220
220
221
- -- | /O(1)/ Yield the length of the vector.
221
+ -- | /O(1)/ Yield the length of the vector
222
222
length :: Vector v a => v a -> Int
223
223
{-# INLINE length #-}
224
224
length = Bundle. length . stream
225
225
226
- -- | /O(1)/ Test whether a vector if empty
226
+ -- | /O(1)/ Test whether a vector is empty
227
227
null :: Vector v a => v a -> Bool
228
228
{-# INLINE null #-}
229
229
null = Bundle. null . stream
@@ -538,8 +538,8 @@ unfoldr :: Vector v a => (b -> Maybe (a, b)) -> b -> v a
538
538
{-# INLINE unfoldr #-}
539
539
unfoldr f = unstream . Bundle. unfoldr f
540
540
541
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
542
- -- generator function to the a seed. The generator function yields 'Just' the
541
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
542
+ -- the generator function to a seed. The generator function yields 'Just' the
543
543
-- next element and the new seed or 'Nothing' if there are no more elements.
544
544
--
545
545
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
Original file line number Diff line number Diff line change @@ -280,12 +280,12 @@ instance Prim a => Exts.IsList (Vector a) where
280
280
-- Length
281
281
-- ------
282
282
283
- -- | /O(1)/ Yield the length of the vector.
283
+ -- | /O(1)/ Yield the length of the vector
284
284
length :: Prim a => Vector a -> Int
285
285
{-# INLINE length #-}
286
286
length = G. length
287
287
288
- -- | /O(1)/ Test whether a vector if empty
288
+ -- | /O(1)/ Test whether a vector is empty
289
289
null :: Prim a => Vector a -> Bool
290
290
{-# INLINE null #-}
291
291
null = G. null
@@ -504,8 +504,8 @@ unfoldr :: Prim a => (b -> Maybe (a, b)) -> b -> Vector a
504
504
{-# INLINE unfoldr #-}
505
505
unfoldr = G. unfoldr
506
506
507
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
508
- -- generator function to the a seed. The generator function yields 'Just' the
507
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
508
+ -- the generator function to a seed. The generator function yields 'Just' the
509
509
-- next element and the new seed or 'Nothing' if there are no more elements.
510
510
--
511
511
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
Original file line number Diff line number Diff line change @@ -290,12 +290,12 @@ instance Storable a => Exts.IsList (Vector a) where
290
290
-- Length
291
291
-- ------
292
292
293
- -- | /O(1)/ Yield the length of the vector.
293
+ -- | /O(1)/ Yield the length of the vector
294
294
length :: Storable a => Vector a -> Int
295
295
{-# INLINE length #-}
296
296
length = G. length
297
297
298
- -- | /O(1)/ Test whether a vector if empty
298
+ -- | /O(1)/ Test whether a vector is empty
299
299
null :: Storable a => Vector a -> Bool
300
300
{-# INLINE null #-}
301
301
null = G. null
@@ -514,8 +514,8 @@ unfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a
514
514
{-# INLINE unfoldr #-}
515
515
unfoldr = G. unfoldr
516
516
517
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
518
- -- generator function to the a seed. The generator function yields 'Just' the
517
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
518
+ -- the generator function to a seed. The generator function yields 'Just' the
519
519
-- next element and the new seed or 'Nothing' if there are no more elements.
520
520
--
521
521
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
Original file line number Diff line number Diff line change @@ -260,12 +260,12 @@ instance (Unbox e) => Exts.IsList (Vector e) where
260
260
-- Length information
261
261
-- ------------------
262
262
263
- -- | /O(1)/ Yield the length of the vector.
263
+ -- | /O(1)/ Yield the length of the vector
264
264
length :: Unbox a => Vector a -> Int
265
265
{-# INLINE length #-}
266
266
length = G. length
267
267
268
- -- | /O(1)/ Test whether a vector if empty
268
+ -- | /O(1)/ Test whether a vector is empty
269
269
null :: Unbox a => Vector a -> Bool
270
270
{-# INLINE null #-}
271
271
null = G. null
@@ -483,8 +483,8 @@ unfoldr :: Unbox a => (b -> Maybe (a, b)) -> b -> Vector a
483
483
{-# INLINE unfoldr #-}
484
484
unfoldr = G. unfoldr
485
485
486
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
487
- -- generator function to the a seed. The generator function yields 'Just' the
486
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
487
+ -- the generator function to a seed. The generator function yields 'Just' the
488
488
-- next element and the new seed or 'Nothing' if there are no more elements.
489
489
--
490
490
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
You can’t perform that action at this time.
0 commit comments