Skip to content

Commit

Permalink
Linting fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sasieta Arana committed Oct 28, 2024
1 parent 6ea295a commit fdb358e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scala/Exponentiation.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
def exponentiation(base: Int, exponent: Int): Int = {
(1 to exponent)
.map(_ => base)
.reduce(_ * _)
(1 to exponent)
.map(_ => base)
.reduce(_ * _)
}

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

0 comments on commit fdb358e

Please sign in to comment.