I want to merge two pattern matching functions

Ohh okay… so there is still just input l which is char list. got it! thank you very much!
But why do you have to declare that?
Best of regards
F