Some functions I use for higher-order function combination