husk-scheme-3.16: R5RS Scheme interpreter, compiler, and library.

Portabilityportable
Stabilityexperimental
Maintainergithub.com/justinethier
Safe HaskellSafe-Inferred

Language.Scheme.Util

Description

This module contains general-purpose utility functions

Synopsis

Documentation

countAllLetters :: Char -> [String] -> IntSource

Count occurences of a letter in a list of strings

countLetters :: Char -> String -> IntSource

Count occurences of a letter in a string

escapeBackslashes :: String -> StringSource

A utility function to escape backslashes in the given string

strip :: String -> StringSource

Remove leading/trailing white space from a string; based on corresponding Python function. Code taken from:

http:gimbo.org.ukblog20070420splitting-a-string-in-haskell