README
Fantasy Cofrees
The Cofree Comonad for Functors.
Examples
Non-empty list using Cofree and Option:
var nel = Cofree(
1,
Option.Some(
Cofree(
2,
Option.None
)
)
);
Cofree comonad structure.
<script type="module">
import fantasyCofrees from 'https://cdn.skypack.dev/fantasy-cofrees';
</script>
The Cofree Comonad for Functors.
Non-empty list using Cofree and Option:
var nel = Cofree(
1,
Option.Some(
Cofree(
2,
Option.None
)
)
);