Sample Code
The following Miranda script determines the set of all subsets of a set of numbers
subsets = ] subsets (x:xs) = ++ y | y <- ys] ++ ys where ys = subsets xsand this is a literate script for a function primes
which gives the list of all prime numbers
Read more about this topic: Miranda (programming Language)
Famous quotes containing the words sample and/or code:
“All that a city will ever allow you is an angle on itan oblique, indirect sample of what it contains, or what passes through it; a point of view.”
—Peter Conrad (b. 1948)
“Faultless honesty is a sine qua non of business life. Not alone the honesty according to the moral code and the Bible. When I speak of honesty I refer to the small, hidden, evasive meannesses of our natures. I speak of the honesty of ourselves to ourselves.”
—Alice Foote MacDougall (18671945)