Add snippet for defining functions

The `defs` snippet defines only methods. We need a simple `def` snippet which expands to a simple one argument function.