UNPKG

655 BJavaScriptView Raw
1'use strict';
2
3var errorTransform = require('./error.transform').transform;
4/**
5 * Attach a transform function to math.subset
6 * Adds a property transform containing the transform function.
7 *
8 * This transform creates a range which includes the end value
9 */
10
11
12function factory(type, config, load, typed) {
13 var subset = load(require('../../function/matrix/subset'));
14 return typed('subset', {
15 '...any': function any(args) {
16 try {
17 return subset.apply(null, args);
18 } catch (err) {
19 throw errorTransform(err);
20 }
21 }
22 });
23}
24
25exports.name = 'subset';
26exports.path = 'expression.transform';
27exports.factory = factory;
\No newline at end of file