node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

fantasy-cofrees

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
        )
    )
);