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.
module Data.Tensort.Utils.
RandomizeList This module prvodies the randomizeList function, which randomizes the order of elements in sortable lists.
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)]
textListToCStringArray :: [Text] -> (Ptr CString -> IO a) -> IO atext-misc-yj Data.Text.Foreign.MiscYj No documentation available.
bitsList :: FiniteBits bs => bs -> [bs]tools-yj Data.Bits.ToolsYj No documentation available.
toList :: Transaction a -> [a]transaction Data.Transaction No documentation available.
fromAscList :: Eq c => [([c], a)] -> TMap c atrie-simple Data.Trie.Map No documentation available.
fromAscListWith :: Ord c => (a -> a -> a) -> [([c], a)] -> TMap c atrie-simple Data.Trie.Map No documentation available.
fromList :: Ord c => [([c], a)] -> TMap c atrie-simple Data.Trie.Map No documentation available.
fromListWith :: Ord c => (a -> a -> a) -> [([c], a)] -> TMap c atrie-simple Data.Trie.Map No documentation available.
toAscList :: TMap c a -> [([c], a)]trie-simple Data.Trie.Map No documentation available.