From 19037f3151d41a78ce1c7f2627f2d89f1dc8c470 Mon Sep 17 00:00:00 2001 From: goloop Date: Sat, 1 Jul 2023 15:34:07 +0300 Subject: [PATCH] Add Tritter type --- fn.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fn.go b/fn.go index ea9df37..7cf5e5f 100644 --- a/fn.go +++ b/fn.go @@ -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. //