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

CopyrightJustin Ethier
LicenseMIT (see LICENSE in the distribution)
Maintainergithub.com/justinethier
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Language.Scheme.Util

Description

This module contains general-purpose utility functions

Synopsis

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/