General functions

There are several general functions you can call from map rule to process input.