Wrong number of parameters. Head and tail are functions. You can't increment a function. Don't use ++ in expressions. The whole thing makes no sense.