Safe Haskell | None |
---|

- unconcat :: [t] -> [[t]]
- getSeed :: IO Integer
- slice :: [a] -> [Int] -> [a]
- replaceAt :: Int -> [a] -> [a] -> [a]
- npletAt :: Fractional a => Int -> Int -> [a] -> [a]
- joinVals :: Num a => Int -> Int -> [a] -> [a]
- stutter :: Int -> Int -> Int -> [a] -> [a]
- diff_select :: Int -> Int -> IO [Int]
- diff_select' :: (Eq a, Num a) => a -> [a1] -> IO [a1]
- randomSubset :: [b] -> Int -> IO [b]
- shuffle' :: [a] -> StdGen -> ([a], StdGen)
- shuffle :: [a] -> IO [a]
- rotate :: [a] -> Int -> [a]
- lace :: [[a]] -> Int -> [a]
- randomList :: Int -> StdGen -> [Int]
- normalize :: (Fractional b, Ord b) => [b] -> [b]
- normalizeTo :: (Fractional b, Ord b) => b -> [b] -> [b]
- lerp :: Fractional a => (a, a) -> (a, a) -> a -> a
- rList :: Int -> IO [Int]
- pick :: [a] -> IO a
- pick' :: (Eq t, Num t, Random t) => a -> [a] -> t -> IO a
- pickN :: (Num a, Enum a) => a -> [b] -> IO [b]
- coin :: IO Bool
- odds :: Int -> Int -> IO Bool
- replicator :: [(Int, b)] -> [b]
- weightedList :: [(Int, b)] -> [b]
- takeToValue' :: (Ord a, Num a) => [a] -> a -> a -> [a] -> [a]
- takeToValue :: (Num a, Ord a) => a -> [a] -> [a]

# Documentation

npletAt :: Fractional a => Int -> Int -> [a] -> [a]Source

diff_select' :: (Eq a, Num a) => a -> [a1] -> IO [a1]Source

randomSubset :: [b] -> Int -> IO [b]Source

shuffle' :: [a] -> StdGen -> ([a], StdGen)Source

Randomly shuffle a list without the IO Monad
*O(N)*
??? -- where did I get this function from? I didn't write it...

randomList :: Int -> StdGen -> [Int]Source

normalize :: (Fractional b, Ord b) => [b] -> [b]Source

normalizeTo :: (Fractional b, Ord b) => b -> [b] -> [b]Source

lerp :: Fractional a => (a, a) -> (a, a) -> a -> aSource

replicator :: [(Int, b)] -> [b]Source

weightedList :: [(Int, b)] -> [b]Source

takeToValue' :: (Ord a, Num a) => [a] -> a -> a -> [a] -> [a]Source

takeToValue :: (Num a, Ord a) => a -> [a] -> [a]Source