How to use the partial function from highland
Find comprehensive JavaScript highland.partial code examples handpicked from public code repositorys.
741 742 743 744 745 746 747 748 749
bomDependencies[i].overriddenByDependencies = overriddenByDependencies; } Array.prototype.push.apply(module.bomDependencies, bomDependencies); var getLibraryDependencies = highland.partial(getDependenciesWithStreams, dependencyText, highland.partial(getLibraryDependency, module.modulePath)); var getLibraryVariableDependencies = highland.partial(getDependenciesWithStreams, dependencyText, highland.partial(getLibraryVariableDependency, module.modulePath)); var libraryDependencies = [];
45
47
8
+ 767 other calls in file
327 328 329 330 331 332 333 334 335 336
* @return {Stream} entityReferenceTransformationStream */ var createEnrichmentStream = function(options) { return highland.pipeline(function(sourceStream) { options = options || {}; var enrichWithProvidedOptions = highland.partial( highland.flip(enrich), options ); return highland(sourceStream).flatMap(enrichWithProvidedOptions);
1
0
1
+ 3 other calls in file
64 65 66 67 68 69 70 71
.flatMap($.compose($, pause.waitFor(pauser))) // note that the pause is // _after_ the map .each($.partial($.log, "str2 end")); setTimeout($.compose(pauser.pause, $.partial($.log, "\npaused\n")), 1050); setTimeout($.compose(pauser.unpause, $.partial($.log, "\nunpause\n")), 3000); ```
0
0
0
+ 37 other calls in file
highland.pipeline is the most popular function in highland (1364 examples)