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.

  1. appendList :: NonEmpty a -> [a] -> NonEmpty a

    base Data.List.NonEmpty

    Attach a list at the end of a NonEmpty.

    >>> appendList (1 :| [2,3]) []
    1 :| [2,3]
    
    >>> appendList (1 :| [2,3]) [4,5]
    1 :| [2,3,4,5]
    

  2. fromList :: HasCallStack => [a] -> NonEmpty a

    base Data.List.NonEmpty

    Converts a normal list to a NonEmpty stream. Raises an error if given an empty list.

  3. prependList :: [a] -> NonEmpty a -> NonEmpty a

    base Data.List.NonEmpty

    Attach a list at the beginning of a NonEmpty.

    >>> prependList [] (1 :| [2,3])
    1 :| [2,3]
    
    >>> prependList [negate 1, 0] (1 :| [2, 3])
    -1 :| [0,1,2,3]
    

  4. toList :: NonEmpty a -> [a]

    base Data.List.NonEmpty

    Convert a stream to a normal list efficiently.

  5. primMapListBounded :: BoundedPrim a -> [a] -> Builder

    bytestring Data.ByteString.Builder.Prim

    Create a Builder that encodes a list of values consecutively using a BoundedPrim for each element. This function is more efficient than

    mconcat . map (primBounded w)
    
    or
    foldMap (primBounded w)
    
    because it moves several variables out of the inner loop.

  6. primMapListFixed :: FixedPrim a -> [a] -> Builder

    bytestring Data.ByteString.Builder.Prim

    Encode a list of values from left-to-right with a FixedPrim.

  7. toList :: Array -> Int -> Int -> [Word8]

    text Data.Text.Array

    Convert an immutable array to a list.

  8. streamList :: [a] -> Stream a

    text Data.Text.Internal.Fusion.Common

    O(n) Convert a list into a Stream. Properties

    unstream . streamList = pack
    

  9. unstreamList :: Stream a -> [a]

    text Data.Text.Internal.Fusion.Common

    O(n) Convert a Stream into a list. Properties

    unstreamList . stream = unpack
    

  10. fromAscList :: [(Key, a)] -> IntMap a

    containers Data.IntMap.Internal

    Build a map from a list of key/value pairs where the keys are in ascending order.

    fromAscList [(3,"b"), (5,"a")]          == fromList [(3, "b"), (5, "a")]
    fromAscList [(3,"b"), (5,"a"), (5,"b")] == fromList [(3, "b"), (5, "b")]
    

Page 33 of many | Previous | Next