- fill :: Int -> (Int -> a) -> [a]
- size :: [a] -> Int
- isEmpty :: [a] -> Bool
- ignoringIndex :: (a -> b) -> a -> Int -> b
- collect :: (a -> Int -> b) -> [a] -> [b]
- select :: (a -> Int -> Bool) -> [a] -> [a]
- reject :: (a -> Int -> Bool) -> [a] -> [a]
- detect :: (a -> Int -> Bool) -> [a] -> Maybe a
- detectIndex :: (a -> Int -> Bool) -> [a] -> Maybe Int
- inject :: a -> (a -> b -> a) -> [b] -> a
- any' :: (a -> Int -> Bool) -> [a] -> Bool
- every :: (a -> Int -> Bool) -> [a] -> Bool
- count :: (a -> Int -> Bool) -> [a] -> Int
- occurencesOf :: Eq a => a -> [a] -> Int
- sum' :: Num a => (b -> Int -> a) -> [b] -> a
- maxItem :: Ord b => (a -> Int -> b) -> [a] -> b
- minItem :: Ord b => (a -> Int -> b) -> [a] -> b
- 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

ignoringIndex :: (a -> b) -> a -> Int -> bSource

occurencesOf :: Eq a => a -> [a] -> IntSource

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.