@jplorg/jpl
Version:
JPL interpreter
16 lines (13 loc) • 326 B
JavaScript
import { call } from '../utils';
export default {
/** { pipe: [op] } */
op(runtime, input, target, params, scope, next) {
return runtime.executeInstructions(params.pipe ?? [], [input], scope, next);
},
/** { pipe: function } */
map(runtime, params) {
return {
pipe: call(params.pipe),
};
},
};