1 2 3 4
myButLast [] = error "empty list" myButLast [x] = error "list with single element" myButLast (x:[y]) = x myButLast (x:xs) = myButLast xs