How to use the compose function from highland

Find comprehensive JavaScript highland.compose code examples handpicked from public code repositorys.

49
50
51
52
53
54
55
56
57
58
  .flatMap($.compose($, pause.waitFor(pauser))) // pause _before_ the map
  .map($.add(5))
  .each($.partial($.log, "str1 end"));

/*
    $.compose($, pause.waitFor(pauser)) ==

    function(x) {
      return $(pause.waitFor(pauser)(x))
    }
fork icon0
star icon0
watch icon0

+ 18 other calls in file