Hoogle Search

Within LTS Haskell 24.37 (ghc-9.10.3)

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

  1. c'netcode_server_next_packet_sequence :: Ptr C'netcode_server_t -> CInt -> IO Word64

    netcode-io Bindings.Netcode.IO

    No documentation available.

  2. p'netcode_client_next_packet_sequence :: FunPtr (Ptr C'netcode_client_t -> IO Word64)

    netcode-io Bindings.Netcode.IO

    No documentation available.

  3. p'netcode_server_next_packet_sequence :: FunPtr (Ptr C'netcode_server_t -> CInt -> IO Word64)

    netcode-io Bindings.Netcode.IO

    No documentation available.

  4. nextClientPacketSequence :: Client -> IO Word64

    netcode-io Netcode.IO

    Returns the sequence number of the next packet that the Client will send.

  5. nextServerPacketSequence :: Server -> Int -> IO Word64

    netcode-io Netcode.IO

    Returns the next sequence number of a packet destined for the client at the given client index.

  6. packetSequenceNumber :: Packet -> Word64

    netcode-io Netcode.IO

    The sequence number for this packet.

  7. data OEISSequence

    oeis Math.OEIS

    Data structure for storing an OEIS entry. For more information on the various components, see http://oeis.org/eishelp2.html.

  8. extendSequence :: SequenceData -> SequenceData

    oeis Math.OEIS

    Extend a sequence by using it as a lookup to the OEIS, taking the first sequence returned as a result, and using it to augment the original sequence. Note that xs is guaranteed to be a prefix of extendSequence xs. If the matched OEIS sequence contains any elements prior to those matching xs, they will be dropped. In addition, if no matching sequences are found, xs will be returned unchanged. The result is not in the IO monad even though the implementation requires looking up information via the Internet. There are no side effects, and practically speaking this function is referentially transparent (technically, results may change from time to time when the OEIS database is updated; this is slightly more likely than the results of getSequenceByID changing, but still unlikely enough to be essentially a non-issue. Again, purists may use extendSequence_IO). Examples:

    Prelude Math.OEIS> extendSequence [5,7,11,13,17]
    [5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71...
    
    Prelude Math.OEIS> extendSequence [2,4,8,16,32]
    [2,4,8,16,32,64,128,256,512,1024,2048,4096,8192...
    
    Prelude Math.OEIS> extendSequence [9,8,7,41,562]   -- nothing matches
    [9,8,7,41,562]
    

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

    oeis Math.OEIS

    The same as extendSequence, but in the IO monad.

  10. 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
    

Page 82 of many | Previous | Next