Skip to content

Instantly share code, notes, and snippets.

@dwhitney
Created June 29, 2011 11:57
Show Gist options
  • Select an option

  • Save dwhitney/1053706 to your computer and use it in GitHub Desktop.

Select an option

Save dwhitney/1053706 to your computer and use it in GitHub Desktop.
object Circle{
def circleAtOrigin = Circle(0, 0, _: Double)
}
case class Circle(x: Double, y: Double, radius: Double)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment