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.

  1. fromList' :: IndexedListLiterals input length output => [output] -> input

    indexed-list-literals Data.IndexedListLiterals

    a partial fromList with bad error messages

  2. fromListP :: forall input (length :: Nat) output len . (KnownNat length, ILL input length output) => len length -> [output] -> Maybe input

    indexed-list-literals Data.IndexedListLiterals

    the fromList variants take a list and convert it into a tuple it's sort of the inverse of toList

    > fromListP (len @3) [1,2,3]
    Just (1,2,3)
    
    > fromListP (len @3) ["word","up"]
    Nothing
    
    > fromListP (len @1) ['z']
    Just (Only 'z') @
    

  3. toList :: IndexedListLiterals input length output => input -> [output]

    indexed-list-literals Data.IndexedListLiterals

    > toList (Only 1)
    [1]
    
    > toList (1,2,3)
    [1,2,3]
    
    > toList ZeroTuple
    []
    

  4. fromAscList :: [Int] -> IntSet

    intern Data.Interned.IntSet

    O(n). Build a set from an ascending list of elements. The precondition (input list is ascending) is not checked.

  5. fromDistinctAscList :: [Int] -> IntSet

    intern Data.Interned.IntSet

    O(n). Build a set from an ascending list of distinct elements. The precondition (input list is strictly ascending) is not checked.

  6. fromList :: [Int] -> IntSet

    intern Data.Interned.IntSet

    O(n*min(n,W)). Create a set from a list of integers.

  7. toAscList :: IntSet -> [Int]

    intern Data.Interned.IntSet

    O(n). Convert the set to an ascending list of elements.

  8. toList :: IntSet -> [Int]

    intern Data.Interned.IntSet

    O(n). Convert the set to a list of elements.

  9. fromList :: [Item (KVITable v)] -> KVITable v

    kvitable Data.KVITable

    Converts a list of ([(Key,Val)], Value) tuples to a KVI table.

  10. toList :: KVITable v -> [Item (KVITable v)]

    kvitable Data.KVITable

    Converts a KVI table to a list of ([(Key,Val)], Value) tuples.

Page 165 of many | Previous | Next