Skip to content

Instantly share code, notes, and snippets.

@es-kumagai
Created July 22, 2015 07:22
Show Gist options
  • Save es-kumagai/356cad0ffd7dabc634e5 to your computer and use it in GitHub Desktop.
Save es-kumagai/356cad0ffd7dabc634e5 to your computer and use it in GitHub Desktop.
そういえば guard でも普通に where が使えるんですね。 #CodePiece
guard let string = string where !string.isEmpty else {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment