Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
base-compat Data.List.NonEmpty.Compat Construct a NonEmpty list from a single element.
-
dlist Data.DList singleton x is a DList with the single element x. singleton obeys the law:
toList (singleton x) = [x]
-
dlist Data.DList.DNonEmpty singleton x is a DNonEmpty with the single element x. singleton obeys the law:
toNonEmpty (singleton x) = x :| []
singleton :: Key -> a -> Word64Map aghc GHC.Data.Word64Map.Internal A map of one element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
singleton :: Key -> a -> Word64Map aghc GHC.Data.Word64Map.Lazy A map of one element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
singleton :: Key -> a -> Word64Map aghc GHC.Data.Word64Map.Strict A map of one element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
singleton :: Key -> a -> Word64Map aghc GHC.Data.Word64Map.Strict.Internal A map of one element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
-
ghc GHC.Data.Word64Set A set of one element.
-
ghc GHC.Data.Word64Set.Internal A set of one element.
-
ghc GHC.Utils.Misc No documentation available.