UNPKG

eris-keys

Version:

a JavaScript client library for eris-keys

15 lines (13 loc) 417 B
module.exports = (function() { function XWrap(fn) { this.f = fn; } XWrap.prototype['@@transducer/init'] = function() { throw new Error('init not implemented on XWrap'); }; XWrap.prototype['@@transducer/result'] = function(acc) { return acc; }; XWrap.prototype['@@transducer/step'] = function(acc, x) { return this.f(acc, x); }; return function _xwrap(fn) { return new XWrap(fn); }; }());