J doesn't have user-defined types. In a language with user-defined types, you would probably have to declare which operations are monoids.
J doesn't have user-defined types. In a language with user-defined types, you would probably have to declare which operations are monoids.