We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 113ffcc commit f5e8e28Copy full SHA for f5e8e28
2 files changed
src/GraphBLAS-sharp/AlgebraicStructures.fs
@@ -38,6 +38,7 @@ type ISemiring<'a> =
38
// => можно сделать специальный статик коснтруктор для инстансов
39
// (если так делать, то уже не получится оставить его генерик типом)
40
// (можно в конструктор передавать проверку на ноль первым параметром, тогда норм)
41
+[<Struct>]
42
type MonoidicType<'a> =
43
| Just of 'a
44
| Zero
src/GraphBLAS-sharp/Predefined/Monoids/Add.fs
@@ -47,7 +47,7 @@ module Add =
47
48
let monoidicFloat =
49
{ new IMonoid<MonoidicType<float>> with
50
- member this.Zero = Just 0.
+ member this.Zero = Zero
51
member this.Plus =
52
<@
53
fun x y ->
0 commit comments