Skip to content

Commit c36d5d9

Browse files
committed
Refactor
1 parent 2cbd43b commit c36d5d9

File tree

1 file changed

+2
-3
lines changed
  • catculator-core/src/main/scala/pl/writeonly/catculator/core/adt/calculus

1 file changed

+2
-3
lines changed

catculator-core/src/main/scala/pl/writeonly/catculator/core/adt/calculus/Constants.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ object Constants {
1818

1919
def appK(a: CombinatorBT): Node[Combinator] = Node(kCom, a)
2020

21-
def app4(c1: CombinatorBT, c2: CombinatorBT, c3: CombinatorBT, c4: CombinatorBT): CombinatorBT = Node(c1, app3(c2, c3, c4))
21+
def app4(c1: CombinatorBT, c2: CombinatorBT, c3: CombinatorBT, c4: CombinatorBT): CombinatorBT = Node(app3(c1, c2, c3), c4)
2222

23-
def app3(c1: CombinatorBT, c2: CombinatorBT, c3: CombinatorBT): CombinatorBT = Node(c1, Node(c2, c3))
23+
def app3(c1: CombinatorBT, c2: CombinatorBT, c3: CombinatorBT): CombinatorBT = Node(Node(c1, c2), c3)
2424

2525
def com(c: Combinator): CombinatorBT = Leaf(c)
26-
2726
}

0 commit comments

Comments
 (0)