版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
374 B

  1. /**
  2. * A `Group` is a `Monoid` with inverses. Instances must satisfy the following law in addition to the monoid laws:
  3. *
  4. * - Inverse: `concat(inverse(a), a) <-> empty = concat(a, inverse(a))`
  5. *
  6. * @since 2.0.0
  7. */
  8. import { Monoid } from './Monoid'
  9. /**
  10. * @category model
  11. * @since 2.0.0
  12. */
  13. export interface Group<A> extends Monoid<A> {
  14. readonly inverse: (a: A) => A
  15. }