>
function: matchingElements
  delivers those elements of a sequence
  that are equal to a given value

> matchingElements matchingThis fromThese =
>   [x | x <- fromThese, x == matchingThis]


function: longerThan
  delivers those elements of a sequence of sequences
  whose lengths exceed a given length

> longerThan thisLength fromTheseSequences =
>   [x | x <- fromTheseSequences, length x > thisLength]


function: shorterThan
  delivers those elements of a sequence of sequences
  whose lengths are less than or equal to a given length

> shorterThan thisLength fromTheseSequences =
>   [x | x <- fromTheseSequences, length x < thisLength]


function: bar
  delivers a string of asterisks whose length matches the
  number of elements in a given sequence

> bar xs = ['*' | x <- xs]


function: removePunctuation
  delivers a string like its argument but without periods,
  commas, question marks, colons, semicolons, parentheses,
  quotation marks, or apostrophes

> removePunctuation =
>   remove '.' . remove ',' . remove '?' . remove ':' . remove ';' .
>     remove '(' . remove '(' . remove '"' . remove  '\''


function: remove
  delivers a sequence like its second argument, but with all
  occurances of its first argument removed

> remove x xs = [y | y <- xs, y /= x]
Last Modified: