Skip to content

Commit

Permalink
Add Tritter type
Browse files Browse the repository at this point in the history
  • Loading branch information
goloop committed Jul 1, 2023
1 parent a055de0 commit 19037f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ type Logicable interface {
float32 | float64
}

// Tritter is a special data type that implements the Trit interface.
type Tritter interface {
IsTrue() bool
IsFalse() bool
IsUnknown() bool
}

// The logicFoundValue is a helper struct that holds a boolean value
// and a Mutex to protect it from concurrent access.
//
Expand Down

0 comments on commit 19037f3

Please sign in to comment.