package com.github.peterpaul.fn;

import javax.annotation.Nonnull;

public class Reductions {
    public static Reduction<String> join(final String delimiter) {
        return new Reduction<String>() {
            @Nonnull
            @Override
            public String apply(@Nonnull String s, @Nonnull String t) {
                return s + delimiter + t;
            }
        };
    }
}

@@ -87,16 +87,480 @@
 tions %7B%0A
+    public static final Reduction%3CBoolean%3E ALL_TRUE = new Reduction%3CBoolean%3E() %7B%0A        @Nonnull%0A        @Override%0A        public Boolean apply(@Nonnull Boolean a, @Nonnull Boolean b) %7B%0A            return a && b;%0A        %7D%0A    %7D;%0A%0A    public static final Reduction%3CBoolean%3E ANY_TRUE = new Reduction%3CBoolean%3E() %7B%0A        @Nonnull%0A        @Override%0A        public Boolean apply(@Nonnull Boolean a, @Nonnull Boolean b) %7B%0A            return a %7C%7C b;%0A        %7D%0A    %7D;%0A%0A
     publ

Add more reductions.