Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
The fundamental data structure: Fixed Mutable Unboxed Int Vector
- type Vec = IOVector Int
- sizeOfVector :: Vec -> IO Int
- getNth :: Vec -> Int -> IO Int
- setNth :: Vec -> Int -> Int -> IO ()
- swapBetween :: Vec -> Int -> Int -> IO ()
- modifyNth :: Vec -> (Int -> Int) -> Int -> IO ()
- setAll :: Vec -> Int -> IO ()
- newVec :: Int -> IO Vec
- newVecWith :: Int -> Int -> IO Vec
- newSizedVecIntFromList :: [Int] -> IO Vec
- newSizedVecIntFromUVector :: Vector Int -> IO Vec
- vecGrow :: Vec -> Int -> IO Vec