Skip to content

Commit a352752

Browse files
committed
Omit some parens
1 parent 393aac4 commit a352752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

day21/src/day21.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def shortestProgram(startState: State, goal: String): String =
7878
queue.enqueue(start)
7979
visited.add(startState)
8080

81-
while (!queue.isEmpty) do
81+
while !queue.isEmpty do
8282
val node = queue.dequeue()
8383
println(node)
84-
if (node.state.output == goal) then
84+
if node.state.output == goal then
8585
return node.program
8686

8787
for action <- ACTIONS do

0 commit comments

Comments
 (0)