Convert Function to Function Selector

Generates the function selector (4 byte encoding) for a given function definition.