Home Manual Reference Source

src/0-core/2-derived/Max.js

import {Measure} from '../0-base/index.js';
import {Monoids} from '../../1-api/0-Monoids.js';

export class Max extends Measure {
	constructor() {
		super(Monoids.INTEGER_MAX);
	}

	measure(element) {
		return element;
	}
}