Evaluator
public protocol Evaluator
A protocol which is capable of evaluating string expressions to a strongly typed object
-
The type of the evaluation result
Declaration
Swift
associatedtype EvaluatedType
-
The only method in
Evaluator
protocol which does the evaluation of a string expression, and returns a strongly typed objectDeclaration
Swift
func evaluate(_ expression: String) -> EvaluatedType
Parameters
expression
The input
Return Value
The evaluated value