Simplify unary and binary apply()