Skip to content

Commit fdb358e

Browse files
author
Paul Sasieta Arana
committed
Linting fixed
1 parent 6ea295a commit fdb358e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scala/Exponentiation.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
def exponentiation(base: Int, exponent: Int): Int = {
2-
(1 to exponent)
3-
.map(_ => base)
4-
.reduce(_ * _)
2+
(1 to exponent)
3+
.map(_ => base)
4+
.reduce(_ * _)
55
}
66

77
object Main extends App {
8-
println("5 ^ 3 = " + exponentiation(5, 3));
8+
println("5 ^ 3 = " + exponentiation(5, 3));
99
}

0 commit comments

Comments
 (0)