packages feed

code-conjure-0.3.0: test/model/eg/spec.out

sum :: [Int] -> Int
-- testing 3 combinations of argument values
-- looking through 1 candidates of size 1
-- looking through 2 candidates of size 2
-- looking through 2 candidates of size 3
-- looking through 2 candidates of size 4
-- looking through 5 candidates of size 5
-- looking through 10 candidates of size 6
-- looking through 19 candidates of size 7
-- looking through 34 candidates of size 8
-- looking through 64 candidates of size 9
-- looking through 129 candidates of size 10
sum xs  =  if null xs then 0 else head xs + sum (tail xs)

(++) :: [Int] -> [Int] -> [Int]
-- testing 3 combinations of argument values
-- looking through 2 candidates of size 1
-- looking through 2 candidates of size 2
-- looking through 6 candidates of size 3
-- looking through 18 candidates of size 4
-- looking through 38 candidates of size 5
-- looking through 110 candidates of size 6
-- looking through 334 candidates of size 7
-- looking through 1018 candidates of size 8
-- looking through 2958 candidates of size 9
-- looking through 8614 candidates of size 10
-- looking through 25910 candidates of size 11
xs ++ ys  =  if null xs then ys else head xs:(tail xs ++ ys)