View detection function

Related to this (# Changing Displayed Field in Calendar View and/or Display Value of Field ) topic,
how about creating a View detection function that can be used in the Fomula function?

I thought it would be nice to have this function so that the title could be changed depending on the view.