Skip to content

Commit

Permalink
updated to newer Scala 3 syntax with fewer braces
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Läufer <laufer@cs.luc.edu>
  • Loading branch information
klaeufer committed Sep 30, 2023
1 parent 99b226e commit a01c0e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/scala/Calculator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ object Calculator:
processExpr(args mkString " ")
else
print("Enter infix expression: ")
scala.io.Source.stdin.getLines() foreach { line =>
processExpr(line)
print("Enter infix expression: ")
}
scala.io.Source.stdin.getLines() foreach:
line =>
processExpr(line)
print("Enter infix expression: ")

end Calculator

0 comments on commit a01c0e1

Please sign in to comment.