Skip to content
Browse files

Format code

  • Loading branch information...
1 parent ce4faf2 commit 3cc2c3ae899dcbe8cb0547a992d9c62aef6debc5 @xieweiking committed Oct 21, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 src/problem_028/Spiral.scala
  2. +1 −1 src/problem_028/TestSpiral.scala
View
2 src/problem_028/Spiral.scala
@@ -87,6 +87,8 @@ class Spiral(scale: Int) {
}
}
+ def apply(x: Int, y: Int) = this.numberAt(x, y);
+
def apply(n: Int) = this.positionOf(n)
}
View
2 src/problem_028/TestSpiral.scala
@@ -19,4 +19,4 @@ object TestSpiral extends App {
test(1001)
-}
+}

0 comments on commit 3cc2c3a

Please sign in to comment.
Something went wrong with that request. Please try again.