Copyright | Justin Ethier |
---|---|
License | MIT (see LICENSE in the distribution) |
Maintainer | github.com/justinethier |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
This module contains general-purpose utility functions
Documentation
countAllLetters :: Char -> [String] -> Int Source
Count occurences of a letter in a list of strings
countLetters :: Char -> String -> Int Source
Count occurences of a letter in a string
escapeBackslashes :: String -> String Source
A utility function to escape backslashes in the given string
lastN' :: Int -> [a] -> [a] Source
Take last n elements of a list, from: http://stackoverflow.com/q/17252851/101258
strip :: String -> String Source
Remove leading/trailing white space from a string; based on corresponding Python function. Code taken from:
http://gimbo.org.uk/blog/2007/04/20/splitting-a-string-in-haskell/