From caa7f9050586f99734fb3bea67dd6636e9757919 Mon Sep 17 00:00:00 2001 From: Attila Mihaly Date: Wed, 18 Nov 2020 13:04:19 -0500 Subject: [PATCH] Use curried functions. #65 --- morphir/sdk/core/src/morphir/sdk/Basics.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/morphir/sdk/core/src/morphir/sdk/Basics.scala b/morphir/sdk/core/src/morphir/sdk/Basics.scala index e6b8e894..4be37b53 100644 --- a/morphir/sdk/core/src/morphir/sdk/Basics.scala +++ b/morphir/sdk/core/src/morphir/sdk/Basics.scala @@ -21,9 +21,9 @@ object Basics { // Bool type Bool = scala.Boolean @inline def not(a: Bool): Bool = !a - @inline def and(a: Bool, b: Bool): Bool = a && b - @inline def or(a: Bool, b: Bool): Bool = a || b - @inline def xor(a: Bool, b: Bool): Bool = (a && !b) || (!a && b) + @inline def and(a: Bool)(b: Bool): Bool = a && b + @inline def or(a: Bool)(b: Bool): Bool = a || b + @inline def xor(a: Bool)(b: Bool): Bool = (a && !b) || (!a && b) // Equality @inline def equal[A](a: A)(b: A): Bool = a == b