File tree Expand file tree Collapse file tree 5 files changed +30
-25
lines changed Expand file tree Collapse file tree 5 files changed +30
-25
lines changed Original file line number Diff line number Diff line change @@ -352,12 +352,12 @@ instance Traversable.Traversable Vector where
352
352
-- Length information
353
353
-- ------------------
354
354
355
- -- | /O(1)/ Yield the length of the vector.
355
+ -- | /O(1)/ Yield the length of the vector
356
356
length :: Vector a -> Int
357
357
{-# INLINE length #-}
358
358
length = G. length
359
359
360
- -- | /O(1)/ Test whether a vector if empty
360
+ -- | /O(1)/ Test whether a vector is empty
361
361
null :: Vector a -> Bool
362
362
{-# INLINE null #-}
363
363
null = G. null
@@ -575,9 +575,10 @@ unfoldr :: (b -> Maybe (a, b)) -> b -> Vector a
575
575
{-# INLINE unfoldr #-}
576
576
unfoldr = G. unfoldr
577
577
578
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
579
- -- generator function to the a seed. The generator function yields 'Just' the
580
- -- next element and the new seed or 'Nothing' if there are no more elements.
578
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
579
+ -- the generator function to the a seed. The generator function yields 'Just'
580
+ -- the next element and the new seed or 'Nothing' if there are no more
581
+ -- elements.
581
582
--
582
583
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
583
584
unfoldrN :: Int -> (b -> Maybe (a , b )) -> b -> Vector a
Original file line number Diff line number Diff line change @@ -215,12 +215,12 @@ mkNoRepType = mkNorepType
215
215
-- Length information
216
216
-- ------------------
217
217
218
- -- | /O(1)/ Yield the length of the vector.
218
+ -- | /O(1)/ Yield the length of the vector
219
219
length :: Vector v a => v a -> Int
220
220
{-# INLINE length #-}
221
221
length = Bundle. length . stream
222
222
223
- -- | /O(1)/ Test whether a vector if empty
223
+ -- | /O(1)/ Test whether a vector is empty
224
224
null :: Vector v a => v a -> Bool
225
225
{-# INLINE null #-}
226
226
null = Bundle. null . stream
@@ -535,9 +535,10 @@ unfoldr :: Vector v a => (b -> Maybe (a, b)) -> b -> v a
535
535
{-# INLINE unfoldr #-}
536
536
unfoldr f = unstream . Bundle. unfoldr f
537
537
538
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
539
- -- generator function to the a seed. The generator function yields 'Just' the
540
- -- next element and the new seed or 'Nothing' if there are no more elements.
538
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
539
+ -- the generator function to the a seed. The generator function yields 'Just'
540
+ -- the next element and the new seed or 'Nothing' if there are no more
541
+ -- elements.
541
542
--
542
543
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
543
544
unfoldrN :: Vector v a => Int -> (b -> Maybe (a , b )) -> b -> v a
Original file line number Diff line number Diff line change @@ -269,12 +269,12 @@ instance Prim a => Exts.IsList (Vector a) where
269
269
-- Length
270
270
-- ------
271
271
272
- -- | /O(1)/ Yield the length of the vector.
272
+ -- | /O(1)/ Yield the length of the vector
273
273
length :: Prim a => Vector a -> Int
274
274
{-# INLINE length #-}
275
275
length = G. length
276
276
277
- -- | /O(1)/ Test whether a vector if empty
277
+ -- | /O(1)/ Test whether a vector is empty
278
278
null :: Prim a => Vector a -> Bool
279
279
{-# INLINE null #-}
280
280
null = G. null
@@ -493,9 +493,10 @@ unfoldr :: Prim a => (b -> Maybe (a, b)) -> b -> Vector a
493
493
{-# INLINE unfoldr #-}
494
494
unfoldr = G. unfoldr
495
495
496
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
497
- -- generator function to the a seed. The generator function yields 'Just' the
498
- -- next element and the new seed or 'Nothing' if there are no more elements.
496
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
497
+ -- the generator function to the a seed. The generator function yields 'Just'
498
+ -- the next element and the new seed or 'Nothing' if there are no more
499
+ -- elements.
499
500
--
500
501
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
501
502
unfoldrN :: Prim a => Int -> (b -> Maybe (a , b )) -> b -> Vector a
Original file line number Diff line number Diff line change @@ -279,12 +279,12 @@ instance Storable a => Exts.IsList (Vector a) where
279
279
-- Length
280
280
-- ------
281
281
282
- -- | /O(1)/ Yield the length of the vector.
282
+ -- | /O(1)/ Yield the length of the vector
283
283
length :: Storable a => Vector a -> Int
284
284
{-# INLINE length #-}
285
285
length = G. length
286
286
287
- -- | /O(1)/ Test whether a vector if empty
287
+ -- | /O(1)/ Test whether a vector is empty
288
288
null :: Storable a => Vector a -> Bool
289
289
{-# INLINE null #-}
290
290
null = G. null
@@ -503,9 +503,10 @@ unfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a
503
503
{-# INLINE unfoldr #-}
504
504
unfoldr = G. unfoldr
505
505
506
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
507
- -- generator function to the a seed. The generator function yields 'Just' the
508
- -- next element and the new seed or 'Nothing' if there are no more elements.
506
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
507
+ -- the generator function to the a seed. The generator function yields 'Just'
508
+ -- the next element and the new seed or 'Nothing' if there are no more
509
+ -- elements.
509
510
--
510
511
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
511
512
unfoldrN :: Storable a => Int -> (b -> Maybe (a , b )) -> b -> Vector a
Original file line number Diff line number Diff line change @@ -250,12 +250,12 @@ instance (Unbox e) => Exts.IsList (Vector e) where
250
250
-- Length information
251
251
-- ------------------
252
252
253
- -- | /O(1)/ Yield the length of the vector.
253
+ -- | /O(1)/ Yield the length of the vector
254
254
length :: Unbox a => Vector a -> Int
255
255
{-# INLINE length #-}
256
256
length = G. length
257
257
258
- -- | /O(1)/ Test whether a vector if empty
258
+ -- | /O(1)/ Test whether a vector is empty
259
259
null :: Unbox a => Vector a -> Bool
260
260
{-# INLINE null #-}
261
261
null = G. null
@@ -473,9 +473,10 @@ unfoldr :: Unbox a => (b -> Maybe (a, b)) -> b -> Vector a
473
473
{-# INLINE unfoldr #-}
474
474
unfoldr = G. unfoldr
475
475
476
- -- | /O(n)/ Construct a vector with at most @n@ by repeatedly applying the
477
- -- generator function to the a seed. The generator function yields 'Just' the
478
- -- next element and the new seed or 'Nothing' if there are no more elements.
476
+ -- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
477
+ -- the generator function to the a seed. The generator function yields 'Just'
478
+ -- the next element and the new seed or 'Nothing' if there are no more
479
+ -- elements.
479
480
--
480
481
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
481
482
unfoldrN :: Unbox a => Int -> (b -> Maybe (a , b )) -> b -> Vector a
You can’t perform that action at this time.
0 commit comments