Skip to content

Commit

Permalink
Use curried functions. finos#65
Browse files Browse the repository at this point in the history
  • Loading branch information
AttilaMihaly committed Nov 18, 2020
1 parent 59e04e4 commit caa7f90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions morphir/sdk/core/src/morphir/sdk/Basics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit caa7f90

Please sign in to comment.