版博士V2.0程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

41 行
885 B

  1. /**
  2. * @since 2.11.0
  3. */
  4. import { Monoid } from './Monoid'
  5. import { Semigroup } from './Semigroup'
  6. /**
  7. * @since 2.11.0
  8. */
  9. export interface Endomorphism<A> {
  10. (a: A): A
  11. }
  12. /**
  13. * @category type lambdas
  14. * @since 2.11.0
  15. */
  16. export declare const URI = 'Endomorphism'
  17. /**
  18. * @category type lambdas
  19. * @since 2.11.0
  20. */
  21. export declare type URI = typeof URI
  22. declare module './HKT' {
  23. interface URItoKind<A> {
  24. readonly [URI]: Endomorphism<A>
  25. }
  26. }
  27. /**
  28. * Endomorphism form a `Semigroup` where the `concat` operation is the usual function composition.
  29. *
  30. * @category instances
  31. * @since 2.11.0
  32. */
  33. export declare const getSemigroup: <A = never>() => Semigroup<Endomorphism<A>>
  34. /**
  35. * Endomorphism form a `Monoid` where the `empty` value is the `identity` function.
  36. *
  37. * @category instances
  38. * @since 2.11.0
  39. */
  40. export declare const getMonoid: <A = never>() => Monoid<Endomorphism<A>>