addFunction

Add a custom function callable from FTL patterns.