isPrefixOf -text

isPrefixOf :: Eq a => [a] -> [a] -> Bool
base Data.List
The isPrefixOf function takes two lists and returns True iff the first list is a prefix of the second.
isPrefixOf :: ByteString -> ByteString -> Bool
bytestring Data.ByteString, bytestring Data.ByteString.Char8, bytestring Data.ByteString.Lazy, bytestring Data.ByteString.Lazy.Char8
O(n) The isPrefixOf function takes two ByteStrings and returns True iff the first is a prefix of the second.