Home Manual Reference Source

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

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

export class KeyLen extends Measure {
	constructor() {
		super(Monoids.KEY_ADD);
	}

	measure(element) {
		return [element, 1];
	}
}