Portability | portable |
---|---|
Stability | experimental |
Maintainer | github.com/justinethier |
Safe Haskell | Safe-Inferred |
This module contains general-purpose utility functions
- countAllLetters :: Char -> [String] -> Int
- countLetters :: Char -> String -> Int
- escapeBackslashes :: String -> String
- strip :: String -> String
Documentation
countAllLetters :: Char -> [String] -> Int
Count occurences of a letter in a list of strings
countLetters :: Char -> String -> Int
Count occurences of a letter in a string
escapeBackslashes :: String -> String
A utility function to escape backslashes in the given string
strip :: String -> String
Remove leading/trailing white space from a string; based on corresponding Python function. Code taken from:
http:gimbo.org.ukblog20070420splitting-a-string-in-haskell