@perfective/identitydeprecated

Identity monad

Usage no npm install needed!

<script type="module">
  import perfectiveIdentity from 'https://cdn.skypack.dev/@perfective/identity';
</script>

README

Identity Monad

@perfective/identity provides an Identity class which implements an identity monad. Identity class satisfies the three monad laws and provides the onto() method as a bind operator. Its instance can be instantiated with the identity() or take() unit functions. These functions are virtually the same, and picking either of them can be based on code style.

Read the full documentation in the repository.