a -> [a]

repeat :: a -> [a]
base Prelude, base Data.List
repeat x is an infinite list, with x the value of every element.
shrinkNothing :: a -> [a]
QuickCheck Test.QuickCheck.Arbitrary, QuickCheck Test.QuickCheck
Returns no shrinking alternatives.
iterate :: (a -> a) -> a -> [a]
base Prelude, base Data.List
iterate f x returns an infinite list of repeated applications of f to x: > iterate f x == [x, f x, f (f x), ...]
genericReplicate :: Integral i => i -> a -> [a]
base Data.List
The genericReplicate function is an overloaded version of replicate, which accepts any Integral value as the number of repetitions to make.
intersperse :: a -> [a] -> [a]
base Data.List
The intersperse function takes an element and a list and `intersperses' that element between the elements of the list. For example, > intersperse ',' "abcde" == "a,b,c,d,e"
replicate :: Int -> a -> [a]
base Prelude, base Data.List
replicate n x is a list of length n with x the value of every element. It is an instance of the more general Data.List.genericReplicate, in which n may be of any integral type.
shrinkRealFrac :: RealFrac a => a -> [a]
QuickCheck Test.QuickCheck.Arbitrary, QuickCheck Test.QuickCheck
Shrink a fraction.
shrinkIntegral :: Integral a => a -> [a]
QuickCheck Test.QuickCheck.Arbitrary, QuickCheck Test.QuickCheck
Shrink an integral number.
enumFrom :: Enum a => a -> [a]
base Prelude
shrink :: Arbitrary a => a -> [a]
QuickCheck Test.QuickCheck.Arbitrary, QuickCheck Test.QuickCheck
pure :: Applicative f => a -> f a
base Control.Applicative
elems :: IntMap a -> [a]
containers Data.IntMap.Strict, containers Data.IntMap.Lazy
O(n). Return all elements of the map in the ascending order of their keys. Subject to list fusion. > elems (fromList [(5,"a"), (3,"b")]) == ["b","a"] > elems empty == []
mrSubList :: MatchResult a -> [a]
regex-base Text.Regex.Base.RegexLike
maybeToList :: Maybe a -> [a]
base Data.Maybe
The maybeToList function returns an empty list when given Nothing or a singleton list when not given Nothing.
getNonEmpty :: NonEmptyList a -> [a]
QuickCheck Test.QuickCheck.Modifiers, QuickCheck Test.QuickCheck
getOrdered :: OrderedList a -> [a]
QuickCheck Test.QuickCheck.Modifiers, QuickCheck Test.QuickCheck
elems :: Set a -> [a]
containers Data.Set
O(n). An alias of toAscList. The elements of a set in ascending order. Subject to list fusion.
toAscList :: Set a -> [a]
containers Data.Set
O(n). Convert the set to an ascending list of elements. Subject to list fusion.
toDescList :: Set a -> [a]
containers Data.Set
O(n). Convert the set to a descending list of elements. Subject to list fusion.
toList :: Set a -> [a]
containers Data.Set
O(n). Convert the set to a list of elements. Subject to list fusion.

Show more results