-
-
Save krzyzanowskim/b630461715e7422c9a78 to your computer and use it in GitHub Desktop.
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
public struct Slice<Base : Indexable> : CollectionType { | |
public typealias Index = Base.Index | |
public let startIndex: Base.Index | |
public let endIndex: Base.Index | |
public subscript (index: Base.Index) -> Base._Element { get } | |
public subscript (bounds: Range<Base.Index>) -> Slice<Base> { get } | |
public init(base: Base, bounds: Range<Base.Index>) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment