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. module Data.Tensort.Utils.RandomizeList

    This module prvodies the randomizeList function, which randomizes the order of elements in sortable lists.

  2. randomizeList :: Ord a => Int -> [a] -> [a]

    tensort Data.Tensort.Utils.RandomizeList

    Takes a seed for random generation and a list and returns a new list with the same elements as the input list but in a random order.

    Examples

    >>> randomizeList 143 ([4, 8, 15, 16, 23, 42] :: [Int])
    [16,23,4,8,15,42]
    
    >>> randomizeList 143 ([(2,4),(3,8),(0,15),(1,16),(5,23),(4,42)] :: [(Int, Int)])
    [(1,16),(5,23),(2,4),(3,8),(0,15),(4,42)]
    

  3. textListToCStringArray :: [Text] -> (Ptr CString -> IO a) -> IO a

    text-misc-yj Data.Text.Foreign.MiscYj

    No documentation available.

  4. bitsList :: FiniteBits bs => bs -> [bs]

    tools-yj Data.Bits.ToolsYj

    No documentation available.

  5. toList :: Transaction a -> [a]

    transaction Data.Transaction

    No documentation available.

  6. fromAscList :: Eq c => [([c], a)] -> TMap c a

    trie-simple Data.Trie.Map

    No documentation available.

  7. fromAscListWith :: Ord c => (a -> a -> a) -> [([c], a)] -> TMap c a

    trie-simple Data.Trie.Map

    No documentation available.

  8. fromList :: Ord c => [([c], a)] -> TMap c a

    trie-simple Data.Trie.Map

    No documentation available.

  9. fromListWith :: Ord c => (a -> a -> a) -> [([c], a)] -> TMap c a

    trie-simple Data.Trie.Map

    No documentation available.

  10. toAscList :: TMap c a -> [([c], a)]

    trie-simple Data.Trie.Map

    No documentation available.

Page 227 of many | Previous | Next