Skip to content

Instantly share code, notes, and snippets.

@taku0
Last active May 26, 2018 06:24
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 taku0/5ce67840ce2824409877a6be6988cd5f to your computer and use it in GitHub Desktop.
Save taku0/5ce67840ce2824409877a6be6988cd5f to your computer and use it in GitHub Desktop.
enum Foo {
case north, south, east, west
case foo(Int), bar(Int)
case foo(Int)
case foo = 1
func foo() {
switch self {
case .foo:
case .foo(let x):
case let .foo(x):
case foo:
case let x:
default:
}
}
func foo() {
foo()
foo
foo {
}
if foo.bar {
}
a.b.c()
a.b.c.d()
a .foo
a
.b
.c
.d()
a?.b?.c()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment