Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
dlist Data.DList fromList xs is a DList representing the list xs. fromList obeys the laws:
toList . fromList = id fromList . toList = id
This function is implemented with ++. Repeated uses of fromList are just as inefficient as repeated uses of ++. If you find yourself doing some form of the following (possibly indirectly), you may not be taking advantage of the DList representation and library:fromList . f . toList
More likely, you will convert from a list, perform some operation on the DList, and convert back to a list:toList . g . fromList
fromList :: [a] -> DNonEmpty adlist Data.DList.DNonEmpty fromList xs is a DNonEmpty representing the list xs. If xs is empty, an error is raised. fromList obeys the law:
fromList xs = fromNonEmpty (fromList xs)
fromList :: [(Key, a)] -> CharMap aregex-tdfa Data.IntMap.CharMap2 No documentation available.
fromList :: Enum key => [(key, a)] -> EnumMap key aregex-tdfa Data.IntMap.EnumMap2 No documentation available.
fromList :: Enum e => [e] -> EnumSet eregex-tdfa Data.IntSet.EnumSet2 No documentation available.
fromList :: Ord k => T [] (k, a) -> T k anon-empty Data.NonEmpty.Map Warning: Dangerous because it silently drops colliding key/value pairs. Better use fromListWith with error or const.
fromList :: Ord a => T [] a -> T anon-empty Data.NonEmpty.Set No documentation available.
fromList :: Routable k => [(AddrRange k, a)] -> IPRTable k aiproute Data.IP.RouteTable The fromList function creates a new IP routing table from a list of a pair of IPrange and value.
fromList :: Routable k => [(AddrRange k, a)] -> IPRTable k aiproute Data.IP.RouteTable.Internal The fromList function creates a new IP routing table from a list of a pair of IPrange and value.
fromList :: MonadRandom m => [(a, Rational)] -> m aMonadRandom Control.Monad.Random.Class Sample a random value from a weighted list. The list must be non-empty and the total weight must be non-zero.