drop -bytestring

drop :: Int -> [a] -> [a]
base Prelude, base Data.List
drop n xs returns the suffix of xs after the first n elements, or [] if n > length xs: > drop 6 "Hello World!" == "World!" > drop 3 [1,2,3,4,5] == [4,5] > drop 3 [1,2] == [] > drop 3 [] == [] > drop (-1) [1,2] == [1,2] > drop 0 [1,2] == [1,2] It is an instance of the more general Data.List.genericDrop, in which n may be of any integral type.
drop :: Int -> Seq a -> Seq a
containers Data.Sequence
O(log(min(i,n-i))). Elements of a sequence after the first i. If i is negative, drop i s yields the whole sequence. If the sequence contains fewer than i elements, the empty sequence is returned.
drop :: Int -> Text -> Text
text Data.Text
O(n) drop n, applied to a Text, returns the suffix of the Text after the first n characters, or the empty Text if n is greater than the length of the Text. Subject to fusion.
drop :: Int64 -> Text -> Text
text Data.Text.Lazy
O(n) drop n, applied to a Text, returns the suffix of the Text after the first n characters, or the empty Text if n is greater than the length of the Text. Subject to fusion.
dropWhile :: (a -> Bool) -> [a] -> [a]
base Prelude, base Data.List
dropWhile p xs returns the suffix remaining after takeWhile p xs: > dropWhile (< 3) [1,2,3,4,5,1,2,3] == [3,4,5,1,2,3] > dropWhile (< 9) [1,2,3] == [] > dropWhile (< 0) [1,2,3] == [1,2,3]
dropAround :: (Char -> Bool) -> Text -> Text
text Data.Text, text Data.Text.Lazy
O(n) dropAround p t returns the substring remaining after dropping characters that fail the predicate p from both the beginning and end of t. Subject to fusion.
package dropbox-sdk
package
A (very preliminary) library to access the Dropbox HTTP API: https://www.dropbox.com/developers/reference/api Version 0.3.1
dropDrive :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Delete the drive, if it exists. > dropDrive x == snd (splitDrive x)
dropExtension :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Remove last extension, and the "." preceding it. > dropExtension x == fst (splitExtension x)
dropExtensions :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Drop all extensions > not $ hasExtension (dropExtensions x)
dropFileName :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Drop the filename. > dropFileName x == fst (splitFileName x)
package dropsolve
package
A command line tool for resolving dropbox conflicts. Deprecated! Please use confsolve. Version 0.1.2.1
dropTrailingPathSeparator :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Remove any trailing path separators > dropTrailingPathSeparator "file/test/" == "file/test" > Posix: not (hasTrailingPathSeparator (dropTrailingPathSeparator x)) || isDrive x > Posix: dropTrailingPathSeparator "/" == "/" > Windows: dropTrailingPathSeparator "\\" == "\\"
dropWhile :: (Char -> Bool) -> Text -> Text
text Data.Text, text Data.Text.Lazy
O(n) dropWhile p t returns the suffix remaining after takeWhile p t. Subject to fusion.
dropWhileEnd :: (Char -> Bool) -> Text -> Text
text Data.Text.Lazy
O(n) dropWhileEnd p t returns the prefix remaining after dropping characters that fail the predicate p from the end of t. Examples: > dropWhileEnd (=='.') "foo..." == "foo"
dropWhileEnd :: (Char -> Bool) -> Text -> Text
text Data.Text
O(n) dropWhileEnd p t returns the prefix remaining after dropping characters that fail the predicate p from the end of t. Subject to fusion. Examples: > dropWhileEnd (=='.') "foo..." == "foo"
dropWhileL :: (a -> Bool) -> Seq a -> Seq a
containers Data.Sequence
O(i) p xs</tt> returns the suffix remaining after takeWhileL p xs.
dropWhileR :: (a -> Bool) -> Seq a -> Seq a
containers Data.Sequence
O(i) p xs</tt> returns the prefix remaining after takeWhileR p xs. dropWhileR p xs is equivalent to reverse (dropWhileL p (reverse xs)).
dropWord16 :: I16 -> Text -> Text
text Data.Text.Foreign
O(1) Return the suffix of the Text, with n Word16 units dropped from its beginning. If n would cause the Text to begin inside a surrogate pair, the beginning of the suffix will be advanced by one additional Word16 unit to maintain its validity.
dropWord16 :: Int -> Text -> Text
text Data.Text.Unsafe
O(1) Unchecked drop of k Word16s from the front of a Text.

Show more results