Skip to content

Instantly share code, notes, and snippets.

@krzyzanowskim
Last active October 24, 2015 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krzyzanowskim/b630461715e7422c9a78 to your computer and use it in GitHub Desktop.
Save krzyzanowskim/b630461715e7422c9a78 to your computer and use it in GitHub Desktop.
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