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. lookupGE :: Ord a => a -> Set a -> Maybe a

    containers Data.Set.Internal

    Find smallest element greater or equal to the given one.

    lookupGE 3 (fromList [3, 5]) == Just 3
    lookupGE 4 (fromList [3, 5]) == Just 5
    lookupGE 6 (fromList [3, 5]) == Nothing
    

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

    containers Data.Set.Internal

    Find smallest element greater than the given one.

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

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

    containers Data.Set.Internal

    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
    

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

    containers Data.Set.Internal

    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
    

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

    containers Data.Set.Internal

    Find largest element smaller than the given one.

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

  6. lookupMax :: Set a -> Maybe a

    containers Data.Set.Internal

    The maximal element of a set.

  7. lookupMin :: Set a -> Maybe a

    containers Data.Set.Internal

    The minimal element of a set.

  8. lookupOption :: IsOption v => OptionSet -> v

    tasty Test.Tasty.Options

    Query the option value.

  9. lookupEnvOs :: OsString -> IO (Maybe OsString)

    directory System.Directory.Internal

    No documentation available.

  10. lookupTypeName :: String -> Q (Maybe Name)

    template-haskell Language.Haskell.TH

    Look up the given name in the (type namespace of the) current splice's scope. See Language.Haskell.TH.Syntax#namelookup for more details.

Page 37 of many | Previous | Next