export interface Foldable { reduce(fn: (accumulator: B, value: A) => B, initial: B): B; } export default Foldable;