Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromList :: Ord k => [([k], v)] -> TreeMap k vtasty-autocollect Test.Tasty.AutoCollect.Utils.TreeMap Convert the given list of values into a TreeMap. For example, fromList [[A, B, C], [A, B], [A, C, D], [Z]] would become TreeMap { value = Nothing , children = Map.fromList [ (A, TreeMap { value = Nothing , children = Map.fromList [ (B, TreeMap { value = Just ... , children = Map.fromList (C, [ TreeMap { value = Just ... , children = Map.empty } ]) }) , (C, TreeMap { value = Nothing , children = Map.fromList [ (D, TreeMap { value = Just ... , children = Map.empty }) ] }) ] }) , (Z, TreeMap { value = Just ... , children = Map.empty }) ] }
-
tidal Sound.Tidal.Boot Turns a list of values into a pattern, playing one of them per cycle. The following are equivalent:
d1 $ n (fromList [0, 1, 2]) # s "superpiano" d1 $ n "<0 1 2>" # s "superpiano"
fromList :: [(Key, a)] -> PrefixMap atomland Toml.Type.PrefixTree Constructs PrefixMap structure from the given list of Key and value pairs.
fromList :: Ord c => [([c], a)] -> TMap c atrie-simple Data.Trie.Map No documentation available.
fromList :: Ord c => [[c]] -> TSet ctrie-simple Data.Trie.Set No documentation available.
fromList :: (Eq k, Hashable k) => [(k, v)] -> IO (Map k v)ttrie Control.Concurrent.STM.Map O(n * log n). Construct a map from a list of key/value pairs.
fromList :: Unboxable a => [a] -> Vector aunboxing-vector Data.Vector.Unboxing No documentation available.
fromList :: forall (n :: Nat) a . SNatI n => [a] -> Maybe (Vec n a)vec Data.Vec.DataFamily.SpineStrict Convert list [a] to Vec n a. Returns Nothing if lengths don't match exactly.
>>> fromList "foo" :: Maybe (Vec N.Nat3 Char) Just ('f' ::: 'o' ::: 'o' ::: VNil)
>>> fromList "quux" :: Maybe (Vec N.Nat3 Char) Nothing
>>> fromList "xy" :: Maybe (Vec N.Nat3 Char) Nothing
fromList :: forall (n :: Nat) a . SNatI n => [a] -> Maybe (Vec n a)vec Data.Vec.Lazy Convert list [a] to Vec n a. Returns Nothing if lengths don't match exactly.
>>> fromList "foo" :: Maybe (Vec N.Nat3 Char) Just ('f' ::: 'o' ::: 'o' ::: VNil)
>>> fromList "quux" :: Maybe (Vec N.Nat3 Char) Nothing
>>> fromList "xy" :: Maybe (Vec N.Nat3 Char) Nothing
fromList :: forall (n :: Nat) a . SNatI n => [a] -> Maybe (Vec n a)vec Data.Vec.Lazy.Inline Convert list [a] to Vec n a. Returns Nothing if lengths don't match exactly.
>>> fromList "foo" :: Maybe (Vec N.Nat3 Char) Just ('f' ::: 'o' ::: 'o' ::: VNil)
>>> fromList "quux" :: Maybe (Vec N.Nat3 Char) Nothing
>>> fromList "xy" :: Maybe (Vec N.Nat3 Char) Nothing