Skip to content

Commit

Permalink
Added Coalgebra - issue palatable#1
Browse files Browse the repository at this point in the history
  • Loading branch information
nomicflux committed Dec 9, 2019
1 parent d83b388 commit 459445e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/com/jnape/palatable/ouroboros/Coalgebra.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.jnape.palatable.ouroboros;

import com.jnape.palatable.lambda.functions.Fn1;
import com.jnape.palatable.lambda.functor.Functor;

/**
* A <code>{@link Coalgebra}&lt;A, F&gt;</code> for some carrier type <code>A</code> and some {@link Functor}
* <code>F</code> is a morphism <code>A -&gt; F&lt;A&gt;</code>.
*
* @param <A> the carrier type
* @param <F> the {@link Functor} witness
*/
@FunctionalInterface
public interface Coalgebra<A, F extends Functor<A, ?>> extends Fn1<A, F> {
}

0 comments on commit 459445e

Please sign in to comment.