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.

  1. singleton :: a -> NonEmpty a

    base-compat Data.List.NonEmpty.Compat

    Construct a NonEmpty list from a single element.

  2. singleton :: a -> DList a

    dlist Data.DList

    singleton x is a DList with the single element x. singleton obeys the law:

    toList (singleton x) = [x]
    

  3. singleton :: a -> DNonEmpty a

    dlist Data.DList.DNonEmpty

    singleton x is a DNonEmpty with the single element x. singleton obeys the law:

    toNonEmpty (singleton x) = x :| []
    

  4. singleton :: Key -> a -> Word64Map a

    ghc GHC.Data.Word64Map.Internal

    A map of one element.

    singleton 1 'a'        == fromList [(1, 'a')]
    size (singleton 1 'a') == 1
    

  5. singleton :: Key -> a -> Word64Map a

    ghc GHC.Data.Word64Map.Lazy

    A map of one element.

    singleton 1 'a'        == fromList [(1, 'a')]
    size (singleton 1 'a') == 1
    

  6. singleton :: Key -> a -> Word64Map a

    ghc GHC.Data.Word64Map.Strict

    A map of one element.

    singleton 1 'a'        == fromList [(1, 'a')]
    size (singleton 1 'a') == 1
    

  7. singleton :: Key -> a -> Word64Map a

    ghc GHC.Data.Word64Map.Strict.Internal

    A map of one element.

    singleton 1 'a'        == fromList [(1, 'a')]
    size (singleton 1 'a') == 1
    

  8. singleton :: Key -> Word64Set

    ghc GHC.Data.Word64Set

    A set of one element.

  9. singleton :: Key -> Word64Set

    ghc GHC.Data.Word64Set.Internal

    A set of one element.

  10. singleton :: a -> [a]

    ghc GHC.Utils.Misc

    No documentation available.

Page 5 of many | Previous | Next