- series :: Num a => Int -> a -> a -> [a]
- geom :: Num a => Int -> a -> a -> [a]
- fib :: Num a => Int -> a -> a -> [a]
- rand :: Random a => Int -> a -> a -> IO [a]
- rand2 :: (Num a, Random a) => Int -> a -> IO [a]
- first :: [t] -> Maybe t
- last' :: [t] -> Maybe t
- indexOf :: Eq a => [a] -> a -> Maybe Int
- indexOfEqual :: Eq a => [a] -> a -> Maybe Int
- indexOfGreaterThan :: Ord a => a -> [a] -> Maybe Int
- indexIn :: (Ord a, Num a) => a -> [a] -> Int
- indexInBetween :: (Ord a, Fractional a) => a -> [a] -> a
- keep :: Int -> [a] -> [a]
- drop' :: Int -> [a] -> [a]
- extendSequences :: [[a]] -> [[a]]
- flop :: [[a]] -> [[a]]
- choose :: [a] -> IO a
- separateAt :: (a -> a -> Bool) -> [a] -> ([a], [a])
- separate :: (a -> a -> Bool) -> [a] -> [[a]]
- clump :: Int -> [a] -> [[a]]
- clumps :: [Int] -> [a] -> [[a]]
- integrate :: Num a => [a] -> [a]
- differentiate :: Num a => [a] -> [a]
- rotate :: Int -> [a] -> [a]
- normalizeSum :: Fractional a => [a] -> [a]
- zipWith_c :: (a -> b -> c) -> [a] -> [b] -> [c]
- zip_c :: [a] -> [b] -> [(a, b)]

# Documentation

rand :: Random a => Int -> a -> a -> IO [a]Source

Random values (size, min, max) - ought this be in floating?

rand2 :: (Num a, Random a) => Int -> a -> IO [a]Source

Random values in the range -abs to +abs (size, abs)

indexOfEqual :: Eq a => [a] -> a -> Maybe IntSource

indexOf

indexOfGreaterThan :: Ord a => a -> [a] -> Maybe IntSource

Collection is sorted, index of first greater element.

indexInBetween :: (Ord a, Fractional a) => a -> [a] -> aSource

Collection is sorted, linearly interpolated fractional index.

extendSequences :: [[a]] -> [[a]]Source

separateAt :: (a -> a -> Bool) -> [a] -> ([a], [a])Source

differentiate :: Num a => [a] -> [a]Source

d -> dx

normalizeSum :: Fractional a => [a] -> [a]Source

Ensure sum of elements is one.