Skip to content

Instantly share code, notes, and snippets.

@andrevidela
Last active January 7, 2019 14:41
Show Gist options
  • Save andrevidela/a787480cfa58ca5f605baedb87154699 to your computer and use it in GitHub Desktop.
Save andrevidela/a787480cfa58ca5f605baedb87154699 to your computer and use it in GitHub Desktop.
prefix operator √
/// A protocol for getting the square root of a value
protocol SquareRoot {
static prefix func √(_ square: Self) -> Self
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment