This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I have two bool variables. and I want to write a method with this logic: | |
// if two variables are true return .both | |
// and if first variable is true return .first | |
// and if the second one is true return .second | |
// otherwise return .none | |
enum Result { | |
case first | |
case second | |
case both |