Minor optimization of functional programming functions.