validated

fun validated(str: String, vars: Set<Char> = setOf()): ValidatedExpression

Generates a validated Expression for use in configs

Return

ValidatedExpression wrapping the passed string as it's default expression

Author

fzzyhmstrs

Since

0.2.0

Parameters

str

String. the default math expression to be used in the ValidatedExpression

vars

Set defining the relevant and allowable variable names

Throws

if the passed string is not parsable

Samples