Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
ihaskell IHaskellPrelude Construct a list from a single element.
Examples
>>> singleton True [True]
>>> singleton [1, 2, 3] [[1,2,3]]
>>> singleton 'c' "c"
-
intern Data.Interned.IntSet O(1). A set of one element.
singleton :: (Representable k, Representable a) => k % 1 -> a % 1 -> Pool % 1 -> Heap k alinear-base Foreign.Heap No documentation available.
-
monad-par-extras Control.Monad.Par.AList O(1) a singleton AList
singleton :: (Ord k, MonoidNull v) => k -> v -> MonoidMap k vmonoidmap-internal Data.MonoidMap.Internal Constructs a MonoidMap from a single key-value pair. Satisfies the following property:
get k (singleton k v) == v
Nullifying the value for key k produces an empty map:nullify k (singleton k v) == empty
singleton :: Ord k => k -> v -> Map k vmonoidmap-internal Data.MonoidMap.Internal.RecoveredMap No documentation available.
singleton :: Key -> IntMultiSetmultiset Data.IntMultiSet O(1). Create a singleton mutli set.
-
multiset Data.MultiSet O(1). Create a singleton mutli set.
singleton :: t -> a -> Timeline t anetwire FRP.Netwire.Utils.Timeline Singleton timeline with the given point.
-
primitive-extras PrimitiveExtras.Bitmap No documentation available.