horse/prob: remove redundant qualifiers
This commit is contained in:
@@ -24,7 +24,7 @@ pub type kfl
|
||||
|
||||
// Automatically generated.
|
||||
// Comparison of the `kfl` type.
|
||||
pub fun kfl/cmp(this : kfl, other : kfl) : e order
|
||||
pub fun cmp(this : kfl, other : kfl) : e order
|
||||
match (this, other)
|
||||
(Impossible, Impossible) -> Eq
|
||||
(Impossible, _) -> Lt
|
||||
@@ -53,7 +53,7 @@ pub fun kfl/cmp(this : kfl, other : kfl) : e order
|
||||
(Guaranteed, Guaranteed) -> Eq
|
||||
|
||||
// Shows a string representation of the `kfl` type.
|
||||
pub fun kfl/show(this : kfl) : e string
|
||||
pub fun show(this : kfl) : e string
|
||||
match this
|
||||
Impossible -> "impossible"
|
||||
Probably-Not -> "probably not"
|
||||
@@ -66,7 +66,7 @@ pub fun kfl/show(this : kfl) : e string
|
||||
Guaranteed -> "guaranteed"
|
||||
|
||||
// KFL multiplication, or the probability of cooccurrence of two independent events.
|
||||
pub fun kfl/(*)(a: kfl, b: kfl): e kfl
|
||||
pub fun (*)(a: kfl, b: kfl): e kfl
|
||||
val (l, h) = match a.cmp(b) // this operation is commutative
|
||||
Gt -> (b, a)
|
||||
_ -> (a, b)
|
||||
@@ -92,7 +92,7 @@ pub fun kfl/(*)(a: kfl, b: kfl): e kfl
|
||||
(Guaranteed, _) -> Guaranteed
|
||||
|
||||
// KFL addition, or the probability of occurrence of at least one of two independent events.
|
||||
pub fun kfl/(+)(a: kfl, b: kfl): e kfl
|
||||
pub fun (+)(a: kfl, b: kfl): e kfl
|
||||
val (l, h) = match a.cmp(b) // this operation is commutative
|
||||
Gt -> (b, a)
|
||||
_ -> (a, b)
|
||||
|
||||
Reference in New Issue
Block a user