Christian Collberg
Department of Computer Science
University of Arizona
``Generate a list where the elements are of the form expr, such that the elements fulfill the conditions in the qualifiers.''
Pascal:
Haskell:
Pascal:
Haskell:
In English:
``Generate a list of elements of the form 2*x, where the x:s are the positive elements from the list xs.
In Haskell:
Example:
Haskell:
Examples:
In Haskell:
Pythagorean Triads:
Defining available (UK) coins:
Example:
Template:
Examples:
Template:
Examples: