init component
This commit is contained in:
28
node_modules/fp-ts/es6/Endomorphism.js
generated
vendored
Normal file
28
node_modules/fp-ts/es6/Endomorphism.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @since 2.11.0
|
||||
*/
|
||||
import { flow, identity } from './function';
|
||||
/**
|
||||
* @category type lambdas
|
||||
* @since 2.11.0
|
||||
*/
|
||||
export var URI = 'Endomorphism';
|
||||
/**
|
||||
* Endomorphism form a `Semigroup` where the `concat` operation is the usual function composition.
|
||||
*
|
||||
* @category instances
|
||||
* @since 2.11.0
|
||||
*/
|
||||
export var getSemigroup = function () { return ({
|
||||
concat: function (first, second) { return flow(first, second); }
|
||||
}); };
|
||||
/**
|
||||
* Endomorphism form a `Monoid` where the `empty` value is the `identity` function.
|
||||
*
|
||||
* @category instances
|
||||
* @since 2.11.0
|
||||
*/
|
||||
export var getMonoid = function () { return ({
|
||||
concat: getSemigroup().concat,
|
||||
empty: identity
|
||||
}); };
|
||||
Reference in New Issue
Block a user