def is a function that receives a template string defining the name and the pattern to match and return a function that receives a function that will be invoked when pattern is matched.
Bellow whe define a function x, named funcName, that for every string received returns the string itself