|
|
|
|
|
by 59nadir
3296 days ago
|
|
I'm not sure I follow, sorry. The line says that we also pledge to produce a Semiring from this Foldable structure. Given it's a length function it's about as general a specification I think you can give it without becoming something completely different. |
|
For the second question, traditional (+,×,...) is a Semiring for integers; so is (&,|,...) (bitwise boolean operations). How can you define both Semiring implementations without getting them confused?
There is another reply to my comment that I haven't digested yet. Maybe it answers the second.