-
> I'm the author and maintainer of `monoid-subclasses` which is kinda in the same space. I'd be motivated to bring the two libraries together if there's any technical reason to do so.
_Originally p…
-
I had a performance issue that I tracked down to the monoid instance. I had many frames that I wanted to merge vertically. Turned out to be substantially faster to take each frame, make it a list of r…
-
Port [Monoid structure](https://github.com/ARK-Builders/arklib-android/blob/main/lib/src/main/java/dev/arkbuilders/arklib/data/storage/Monoid.kt) used during conflicts resolution. It's naive approach …
-
Panettone is currently not powerful enough to infer and generate the type information for array items, and probably more advanced OpenAPI use cases (read: very nested structures).
Therefore when an…
-
`foldf` is redundant with `reduce`, and `fold*` generally provides the same functionality like `reduce*`, so we should think of better names, e.g.,
- `reduce(R type, init R, f (R,T) -> R | abort R…
-
# 定义
1. [fantasy land](https://github.com/fantasyland/fantasy-land#monoid)
2. 设一个非空集合G,G上定义的二元运算*满足:
- 封闭性:对于任意a, b ∈ G,有 a * b ∈ G;
- 结合性:对于任意a, b, c ∈ G,有 (a * b) * c = a * (b * c);
- 单位元:存…
-
This Issue is complete once the library includes these instances.
```haskell
instance Monoid Property where mempty = property True
instance Semigroup Property where () = (.&&.)
```
I'm presum…
-
There is an instance `Monoid w => MonadAccum w (AccumT w Identity)`:
https://github.com/haskell/mtl/blob/6be8cb55ca9a8bfa6111e3004e4b56b91ed5edcc/Control/Monad/Accum.hs#L163
But a more general i…
-
## Data.Monoid
- [x] [Dual](https://www.stackage.org/haddock/lts-13.6/base-4.12.0.0/Data-Monoid.html#t:Dual)
- [x] [Endo](https://www.stackage.org/haddock/lts-13.6/base-4.12.0.0/Data-Monoid.html#t…
-
### Steps To Reproduce
```
sage: from sage.monoids.indexed_free_monoid import IndexedFreeMonoid
sage: L=['a','b','c']
sage: F=IndexedFreeMonoid(L)
sage: F
Free monoid indexed by {'a', 'b', 'c'…