版博士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.

Semiring.d.ts 404 B

123456789101112131415161718
  1. /**
  2. * @category model
  3. * @since 2.0.0
  4. */
  5. export interface Semiring<A> {
  6. readonly add: (x: A, y: A) => A
  7. readonly zero: A
  8. readonly mul: (x: A, y: A) => A
  9. readonly one: A
  10. }
  11. /**
  12. * Use [`getSemiring`](./function.ts.html#getsemiring) instead.
  13. *
  14. * @category zone of death
  15. * @since 2.0.0
  16. * @deprecated
  17. */
  18. export declare const getFunctionSemiring: <A, B>(S: Semiring<B>) => Semiring<(a: A) => B>