"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListLength = void 0;
const index_js_1 = require("../model/index.js");
class ListLength extends index_js_1.Pipe {
    async apply(inputSet, _ctx) {
        const el = await this.createDocument(inputSet.length);
        return [el];
    }
}
exports.ListLength = ListLength;
ListLength.$type = 'List.length';
ListLength.$help = `
Returns a single element whose value is a number of elements in the input set.

### Use For

- accessing the count of input elements (e.g. to output the number of available options on the website)
`;
//# sourceMappingURL=List.length.js.map