Returns the identity object for a monoid.
This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.
Returns the identity object for a monoid.
(monoid) =>
isNew(monoid) ? monoid[flEmpty]()
: isCtorNew(monoid) ? monoid.constructor[flEmpty]()
: isOld(monoid) ? warn(monoid.empty())
: isCtorOld(monoid) ? warn(monoid.constructor.empty())
: /*otherwise*/ unsupported(monoid)