RVS_SequenceProtocol
public protocol RVS_SequenceProtocol : SequenceIf you conform to this protocol, you get a few basic Sequence attributes for free.
You’ll need to set up a sequence_contents Array (read/write), and set the Element type, and that’s about all.
This also gives you a read-only subscript.
This cannot be applied to enums, as it requires a stored property.
- 
                  subscript(_:)Default implementationSubscript access is get-only (for safety). Default ImplementationReturns an indexed element. DeclarationSwift subscript(inIndex: Int) -> Element { get }ParametersindexThe 0-based index to subscript. Must be less than count. 
- 
                  
                  DeclarationSwift init(sequence_contents: [Element])Parameterssequence_contentsAn Array of the element type, to initialize the value. 
- 
                  removeAll()Default implementationThis allows us to remove all the elements in the sequence. It is a mutating function/method. Default ImplementationDefault implementation should do fine for us. DeclarationSwift mutating func removeAll()
 View on GitHub
            View on GitHub
           RVS_SequenceProtocol Protocol Reference
      RVS_SequenceProtocol Protocol Reference