We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdb358e commit 75b842dCopy full SHA for 75b842d
src/scala/Exponentiation.scala
@@ -1,7 +1,7 @@
1
def exponentiation(base: Int, exponent: Int): Int = {
2
(1 to exponent)
3
- .map(_ => base)
4
- .reduce(_ * _)
+ .map(_ => base)
+ .reduce(_ * _)
5
}
6
7
object Main extends App {
0 commit comments