drop :: Int -> [A] -> [A] -- testing 360 combinations of argument values -- pruning with 4/7 rules -- looking through 2 candidates of size 1 -- looking through 3 candidates of size 2 -- looking through 4 candidates of size 3 -- looking through 6 candidates of size 4 -- looking through 8 candidates of size 5 -- looking through 13 candidates of size 6 -- looking through 24 candidates of size 7 -- tested 39 candidates drop 0 xs = xs drop x [] = [] drop x (y:xs) = drop (x - 1) xs take :: Int -> [A] -> [A] -- testing 143 combinations of argument values -- pruning with 14/21 rules -- looking through 2 candidates of size 1 -- looking through 3 candidates of size 2 -- looking through 4 candidates of size 3 -- looking through 6 candidates of size 4 -- looking through 8 candidates of size 5 -- looking through 13 candidates of size 6 -- looking through 24 candidates of size 7 -- looking through 31 candidates of size 8 -- looking through 59 candidates of size 9 -- tested 111 candidates take 0 xs = [] take x [] = [] take x (y:xs) = y:take (x - 1) xs