Hoogle Search

Within LTS Haskell 24.12 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. lookupIndex :: Ord a => a -> Set a -> Maybe Int

    rio RIO.Set

    Lookup the index of an element, which is its zero-based index in the sorted sequence of elements. The index is a number from 0 up to, but not including, the size of the set.

    isJust   (lookupIndex 2 (fromList [5,3])) == False
    fromJust (lookupIndex 3 (fromList [5,3])) == 0
    fromJust (lookupIndex 5 (fromList [5,3])) == 1
    isJust   (lookupIndex 6 (fromList [5,3])) == False
    

  2. lookupLE :: Ord a => a -> Set a -> Maybe a

    rio RIO.Set

    Find largest element smaller or equal to the given one.

    lookupLE 2 (fromList [3, 5]) == Nothing
    lookupLE 4 (fromList [3, 5]) == Just 3
    lookupLE 5 (fromList [3, 5]) == Just 5
    

  3. lookupLT :: Ord a => a -> Set a -> Maybe a

    rio RIO.Set

    Find largest element smaller than the given one.

    lookupLT 3 (fromList [3, 5]) == Nothing
    lookupLT 5 (fromList [3, 5]) == Just 3
    

  4. lookupMax :: Set a -> Maybe a

    rio RIO.Set

    The maximal element of a set.

  5. lookupMin :: Set a -> Maybe a

    rio RIO.Set

    The minimal element of a set.

  6. lookupHeader :: HeaderName -> [Header] -> Maybe String

    HTTP Network.HTTP.Headers

    lookupHeader hdr hdrs locates the first header matching hdr in the list hdrs.

  7. lookupJustDef :: Eq a => b -> a -> [(a, b)] -> b

    errors Control.Error

    No documentation available.

  8. lookupIndex :: (HashTable h, Eq k, Hashable k) => h s k v -> k -> ST s (Maybe Word)

    hashtables Data.HashTable.Class

    Looks up the index of a key-value mapping in a hash table suitable for passing to nextByIndex.

  9. lookupIndex :: (HashTable h, Eq k, Hashable k) => IOHashTable h k v -> k -> IO (Maybe Word)

    hashtables Data.HashTable.IO

    See the documentation for this function in lookupIndex.

  10. lookupIndex :: (Hashable k, Eq k) => HashTable s k v -> k -> ST s (Maybe Word)

    hashtables Data.HashTable.ST.Cuckoo

    Find index of given key in the hashtable.

Page 70 of many | Previous | Next