rope-0.3: Tools for manipulating fingertrees of bytestrings with optional annotationsSource codeContentsIndex
Data.Rope.Internal
Contents
Construction
Analysis
Deconstruction
Cutting
Unpacking
Synopsis
newtype Rope = Rope {
body :: Body
}
pack :: Reducer a Rope => a -> Rope
empty :: Rope
fromChunks :: [ByteString] -> Rope
fromByteString :: ByteString -> Rope
fromLazyByteString :: ByteString -> Rope
fromString :: String -> Rope
fromWords :: [Word8] -> Rope
fromChar :: Char -> Rope
fromWord8 :: Word8 -> Rope
length :: Rope -> Int
null :: Rope -> Bool
toChunks :: Rope -> [ByteString]
toString :: Rope -> String
toLazyByteString :: Rope -> ByteString
splitAt :: Int -> Rope -> (Rope, Rope)
take :: Int -> Rope -> Rope
drop :: Int -> Rope -> Rope
class Unpackable a where
unpack :: Rope -> [a]
head :: Rope -> a
last :: Rope -> a
uncons :: Rope -> Maybe (a, Rope)
unsnoc :: Rope -> Maybe (Rope, a)
class Breakable a where
break :: (a -> Bool) -> Rope -> (Rope, Rope)
span :: (a -> Bool) -> Rope -> (Rope, Rope)
takeWhile :: (a -> Bool) -> Rope -> Rope
dropWhile :: (a -> Bool) -> Rope -> Rope
w2c :: Word8 -> Char
findIndexOrEnd :: (Word8 -> Bool) -> ByteString -> Int
Documentation
newtype Rope Source
Constructors
Rope
body :: Body
show/hide Instances
Construction
pack :: Reducer a Rope => a -> RopeSource
empty :: RopeSource
fromChunks :: [ByteString] -> RopeSource
fromByteString :: ByteString -> RopeSource
fromLazyByteString :: ByteString -> RopeSource
fromString :: String -> RopeSource
fromWords :: [Word8] -> RopeSource
fromChar :: Char -> RopeSource
fromWord8 :: Word8 -> RopeSource
Analysis
length :: Rope -> IntSource
null :: Rope -> BoolSource
Deconstruction
toChunks :: Rope -> [ByteString]Source
toString :: Rope -> StringSource
toLazyByteString :: Rope -> ByteStringSource
Cutting
splitAt :: Int -> Rope -> (Rope, Rope)Source
take :: Int -> Rope -> RopeSource
drop :: Int -> Rope -> RopeSource
Unpacking
class Unpackable a whereSource
Methods
unpack :: Rope -> [a]Source
head :: Rope -> aSource
last :: Rope -> aSource
uncons :: Rope -> Maybe (a, Rope)Source
unsnoc :: Rope -> Maybe (Rope, a)Source
show/hide Instances
class Breakable a whereSource
Methods
break :: (a -> Bool) -> Rope -> (Rope, Rope)Source
span :: (a -> Bool) -> Rope -> (Rope, Rope)Source
takeWhile :: (a -> Bool) -> Rope -> RopeSource
dropWhile :: (a -> Bool) -> Rope -> RopeSource
show/hide Instances
w2c :: Word8 -> CharSource
findIndexOrEnd :: (Word8 -> Bool) -> ByteString -> IntSource
Produced by Haddock version 2.4.2