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:
“As a rule they will refuse even to sample a foreign dish, they regard such things as garlic and olive oil with disgust, life is unliveable to them unless they have tea and puddings.”
—George Orwell (19031950)
“Many people will say to working mothers, in effect, I dont think you can have it all. The phrase for have it all is code for have your cake and eat it too. What these people really mean is that achievement in the workplace has always come at a priceusually a significant personal price; conversely, women who stayed home with their children were seen as having sacrificed a great deal of their own ambition for their families.”
—Anne C. Weisberg (20th century)