Thank you for your answer, but i just feel that options should be a property. I'm ok with my current solution but it can be simplified with named subscript.
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution