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.
singleton :: k -> a -> MonoidalMap k amonoidal-containers Data.Map.Monoidal.Strict O(1). A map with a single element.
singleton :: Key -> a -> NEIntMap anonempty-containers Data.IntMap.NonEmpty O(1). A map with a single element.
singleton 1 'a' == fromList ((1, 'a') :| []) size (singleton 1 'a') == 1
singleton :: Key -> a -> NEIntMap anonempty-containers Data.IntMap.NonEmpty.Internal O(1). A map with a single element.
singleton 1 'a' == fromList ((1, 'a') :| []) size (singleton 1 'a') == 1
-
nonempty-containers Data.IntSet.NonEmpty O(1). Create a singleton set.
-
nonempty-containers Data.IntSet.NonEmpty.Internal O(1). Create a singleton set.
singleton :: k -> a -> NEMap k anonempty-containers Data.Map.NonEmpty O(1). A map with a single element.
singleton 1 'a' == fromList ((1, 'a') :| []) size (singleton 1 'a') == 1
singleton :: k -> a -> NEMap k anonempty-containers Data.Map.NonEmpty.Internal O(1). A map with a single element.
singleton 1 'a' == fromList ((1, 'a') :| []) size (singleton 1 'a') == 1
-
nonempty-containers Data.Sequence.NonEmpty A singleton sequence.
-
nonempty-containers Data.Sequence.NonEmpty.Internal A singleton sequence.
-
nonempty-containers Data.Set.NonEmpty O(1). Create a singleton set.