Hoogle Search

Within LTS Haskell 24.19 (ghc-9.10.3)

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

  1. extendSequence_IO :: [Integer] -> IO [Integer]

    oeis Math.OEIS

    The same as extendSequence, but in the IO monad.

  2. getSequenceByID :: String -> Maybe SequenceData

    oeis Math.OEIS

    Look up a sequence in the OEIS by its catalog number. Generally this would be its A-number, but M-numbers (from the /Encyclopedia of Integer Sequences) and N-numbers (from the Handbook of Integer Sequences/) can be used as well. Note that the result is not in the IO monad, even though the implementation requires looking up information via the Internet. There are no side effects to speak of, and from a practical point of view the function is referentially transparent (OEIS A-numbers could change in theory, but it's extremely unlikely). Examples:

    Prelude Math.OEIS> getSequenceByID "A000040"    -- the prime numbers
    Just [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47...
    
    Prelude Math.OEIS> getSequenceByID "nosuch"     -- no such sequence!
    Nothing
    

  3. getSequenceByID_IO :: String -> IO (Maybe SequenceData)

    oeis Math.OEIS

    The same as getSequenceByID, but with a result in the IO monad.

  4. lookupSequence :: SequenceData -> Maybe OEISSequence

    oeis Math.OEIS

    Find a matching sequence in the OEIS database, returning a data structure containing the entirety of the information the OEIS has on the sequence. The standard disclaimer about not being in the IO monad applies.

  5. lookupSequenceByID :: String -> Maybe OEISSequence

    oeis Math.OEIS

    Look up a sequence by ID number, returning a data structure containing the entirety of the information the OEIS has on the sequence. The standard disclaimer about not being in the IO monad applies. Examples:

    Prelude Math.OEIS> description `fmap` lookupSequenceByID "A000040"
    Just "The prime numbers."
    
    Prelude Math.OEIS> keywords `fmap` lookupSequenceByID "A000105"
    Just [Nonn,Hard,Nice,Core]
    

  6. lookupSequenceByID_IO :: String -> IO (Maybe OEISSequence)

    oeis Math.OEIS

    The same as lookupSequenceByID, but in the IO monad.

  7. lookupSequence_IO :: SequenceData -> IO (Maybe OEISSequence)

    oeis Math.OEIS

    The same as lookupSequence, but in the IO monad.

  8. lookupSequences_IO :: SequenceData -> IO [OEISSequence]

    oeis Math.OEIS

    Similar to lookupSequence_IO, but return up to 10 results.

  9. searchSequence_IO :: String -> IO (Maybe OEISSequence)

    oeis Math.OEIS

    Look up a sequence in the OEIS using its search function.

  10. searchSequences_IO :: String -> IO [OEISSequence]

    oeis Math.OEIS

    Look up sequences in the OEIS using its search function (returns up to 10 results).

Page 83 of many | Previous | Next