Skip to content

Instantly share code, notes, and snippets.

@lizixroy
Created September 10, 2016 22:10
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 lizixroy/5e415dc204dab40f9408402cf2544aad to your computer and use it in GitHub Desktop.
Save lizixroy/5e415dc204dab40f9408402cf2544aad to your computer and use it in GitHub Desktop.
usage
func testMe() {
let array = [1, 2, 3]
let b = g(array, at: 5) // instead of using a[5]
XCTAssertEqual(1, b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment