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 :: forall (n :: Nat) a . SNatI n => [a] -> Maybe (Vec n a)vec Data.Vec.Pull Convert list [a] to Vec n a. Returns Nothing if lengths don't match exactly.
>>> L.fromPull <$> fromList "foo" :: Maybe (L.Vec N.Nat3 Char) Just ('f' ::: 'o' ::: 'o' ::: VNil)
>>> L.fromPull <$> fromList "quux" :: Maybe (L.Vec N.Nat3 Char) Nothing
>>> L.fromPull <$> fromList "xy" :: Maybe (L.Vec N.Nat3 Char) Nothing
-
word-trie Data.Trie Take a list of String and compress it into a Trie
-
yarn-lock Data.MultiKeyedMap Build a map from a list of key/value pairs.
fromList :: [(BS, a)] -> Trie azenacy-html Zenacy.HTML.Internal.Trie Creates a trie from a list of tuples containing key and value.
fromList :: (a -> a -> Ordering) -> (a -> Val) -> [a] -> FTree aFenwickTree Data.Tree.Fenwick Creates a tree from a list and helper functions: compare, and value.
fromList :: (Interval k e, Ord k) => [(k, v)] -> IntervalMap k vIntervalMap Data.IntervalMap.Generic.Lazy O(n log n). Build a map from a list of key/value pairs. See also fromAscList. If the list contains more than one value for the same key, the last value for the key is retained.
fromList :: (Interval k e, Ord k) => [(k, v)] -> IntervalMap k vIntervalMap Data.IntervalMap.Generic.Strict O(n log n). Build a map from a list of key/value pairs. See also fromAscList. If the list contains more than one value for the same key, the last value for the key is retained.
fromList :: (Interval k e, Ord k) => [(k, v)] -> IntervalMap k vIntervalMap Data.IntervalMap.Lazy O(n log n). Build a map from a list of key/value pairs. See also fromAscList. If the list contains more than one value for the same key, the last value for the key is retained.
fromList :: (Interval k e, Ord k) => [(k, v)] -> IntervalMap k vIntervalMap Data.IntervalMap.Strict O(n log n). Build a map from a list of key/value pairs. See also fromAscList. If the list contains more than one value for the same key, the last value for the key is retained.
fromList :: (Interval k e, Ord k) => [k] -> IntervalSet kIntervalMap Data.IntervalSet O(n log n). Build a set from a list of elements. See also fromAscList. If the list contains duplicate values, the last value is retained.