enum FunctionEnum
{
case binaryOperation((Double,Double)->Double)
constant(Double)
}
1.you can associate values to enum cases , hence it also has type here for example binaryOperation is of type
((Double,Double)->Double) which means its of type a closure which accepts two doubles and return one