Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
singleton :: (Hashable k, Ord k, Ord p) => k -> p -> v -> HashPSQ k p vpsqueues Data.HashPSQ O(1) Build a queue with one element.
singleton :: Ord p => Int -> p -> v -> IntPSQ p vpsqueues Data.IntPSQ O(1) Build a queue with one element.
singleton :: k -> p -> v -> OrdPSQ k p vpsqueues Data.OrdPSQ O(1) Build a queue with one element.
singleton :: a -> IORef (Weak b) -> (b -> IO ()) -> IO (WeakBag a, WeakBagTicket)reflex Data.WeakBag Create a WeakBag with one item; equivalent to creating the WeakBag with empty, then using insert.
singleton :: ListLike full item => item -> fullListLike Data.ListLike Creates a single-element list out of an element
singleton :: ListLike full item => item -> fullListLike Data.ListLike.Base Creates a single-element list out of an element
-
basic-prelude BasicPrelude Construct a list from a single element.
Examples
>>> singleton True [True]
>>> singleton [1, 2, 3] [[1,2,3]]
>>> singleton 'c' "c"
singleton :: Location -> a -> BorderMap abrick Brick.BorderMap A BorderMap that tracks only the given the point (and initially maps it to the given value).
singleton :: Int -> Run a -> IMap abrick Data.IMap No documentation available.
singleton :: Char -> ShortTextghc-lib-parser GHC.Data.ShortText Create a singleton