public class ShuntingYardResolver
A strongly typed and performant class capable of resolving complex string logic and returning a comparison as a single Bool value.
Parses a string in the format “(a == b || c == d) && (x == y) || (foo == bar && day >= night)” where
O(n) where n is the the number of conditions in the group
public func evaluate(expression: String?) -> Bool
The entire string that represents ALL the conditions to be resolved.
A boolean value representing whether ALL conditions have been met or not.
Value calculated by generating a UUID and hasing it followed by a mutation into a percentage value. This value is stored in UserDefaults and will persist between sessions.
public func cohortPercentage(override key: String = "abTestingPercentageValue") -> Float
public func valueFor(condition: Condition) -> String?