Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created September 23, 2012 15:34
Show Gist options
  • Select an option

  • Save edipofederle/3772052 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/3772052 to your computer and use it in GitHub Desktop.
square2.hs
import Test.QuickCheck
import Data.List
square :: [Double] -> [Double]
square (x:xs) = x*x : square xs
square [] = []
-- testing
prop_test1 xs = not(null xs) ==> map(1*) ( square xs ) == map (\x -> x * x) xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment