hw-balancedparens- Balanced parentheses

Safe HaskellNone




dropTake :: Storable a => Int -> Int -> Vector a -> Vector a Source #

dropTakeFill :: Storable a => Int -> Int -> a -> Vector a -> Vector a Source #

pageFill Source #


:: Storable a 
=> Int

The n-th page to retrieve

-> Int

The page size

-> a

The element value to fill the page when input vector has insufficient values

-> Vector a

The input vector

-> Vector a

The page

Return the n-th page of size s from the input vector. In the case where there isn't sufficient data to fill the page from the input vector, then the remainder of the page is filled with a.