Not convinced that there is a clear meaning of this. It seems like you want something like this object here:

https://github.com/twitter/algebird/blob/develop/algebird-core/src/main/scala/com/twitter/algebird/MomentsGroup.scala#L26

Is that right?