"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class Divide extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['a', 'b'],
            o: ['a ÷ b'],
        }, {}, system, _ids_1.ID_DIVIDE);
    }
    f({ a, b }, done) {
        if (b === 0) {
            done(undefined, 'cannot divide by 0');
        }
        else {
            done({ 'a ÷ b': a / b });
        }
    }
}
exports.default = Divide;
//# sourceMappingURL=index.js.map