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 :: PrimType ty => ty -> UVect 1 tybasement Basement.Sized.UVect No documentation available.
-
basement Basement.Sized.Vect No documentation available.
-
basement Basement.String Create a single element String
singleton :: PrimType ty => ty -> UArray tybasement Basement.UArray No documentation available.
-
byteslice Data.Bytes Create a byte sequence with one byte.
singleton :: Enum k => k -> a -> EnumMap k aenummapset Data.EnumMap.Lazy No documentation available.
singleton :: Enum k => k -> a -> EnumMap k aenummapset Data.EnumMap.Strict No documentation available.
singleton :: Enum k => k -> EnumSet kenummapset Data.EnumSet No documentation available.
-
ghc-internal GHC.Internal.Data.List Construct a list from a single element.
Examples
>>> singleton True [True]
>>> singleton [1, 2, 3] [[1,2,3]]
>>> singleton 'c' "c"
-
ghc-internal GHC.Internal.Data.OldList Construct a list from a single element.
Examples
>>> singleton True [True]
>>> singleton [1, 2, 3] [[1,2,3]]
>>> singleton 'c' "c"