diff --git a/src/main/java/com/jnape/palatable/ouroboros/Coalgebra.java b/src/main/java/com/jnape/palatable/ouroboros/Coalgebra.java new file mode 100644 index 0000000..a048e4a --- /dev/null +++ b/src/main/java/com/jnape/palatable/ouroboros/Coalgebra.java @@ -0,0 +1,15 @@ +package com.jnape.palatable.ouroboros; + +import com.jnape.palatable.lambda.functions.Fn1; +import com.jnape.palatable.lambda.functor.Functor; + +/** + * A {@link Coalgebra}<A, F> for some carrier type A and some {@link Functor} + * F is a morphism A -> F<A>. + * + * @param the carrier type + * @param the {@link Functor} witness + */ +@FunctionalInterface +public interface Coalgebra> extends Fn1 { +}