Hoogle Search
Within LTS Haskell 24.2 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
singleton :: k -> a -> Map k acontainers Data.Map.Lazy A map with a single element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
singleton :: k -> a -> Map k acontainers Data.Map.Strict A map with a single element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
singleton :: k -> a -> Map k acontainers Data.Map.Strict.Internal A map with a single element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
-
containers Data.Sequence A singleton sequence.
-
containers Data.Sequence.Internal A singleton sequence.
-
containers Data.Set Create a singleton set.
-
containers Data.Set.Internal Create a singleton set.
singleton :: Key -> v -> KeyMap vaeson Data.Aeson.KeyMap Construct a map with a single element.
singleton :: Hashable k => k -> v -> HashMap k vunordered-containers Data.HashMap.Internal Construct a map with a single element.
-
unordered-containers Data.HashMap.Internal.Array No documentation available.