001package org.clafer.collection;
002
003/**
004 * Types with an identity and an associative binary operation.
005 *
006 * @param <T> the type
007 * @author jimmy
008 */
009public interface Monoid<T> {
010
011    public T empty();
012
013    public T append(T a, T b);
014
015    public T concat(T... ts);
016}