Trine – A utility library for functional programming in JavaScript
(Disclosure: one of the authors of Ramda here, so I may well be biased toward a very different approach.)<p>This is an interesting approach, but I get caught right at the beginning, where you say "What you'd really want to do is this:<p><pre><code>    items
      .filter(isOk)
      .map(toOtherType)
      .flatten()
      
      </code></pre>
But what I really want to do is build a reusable function:<p><pre><code>    var process = seq(filter(isOk), map(toOtherType), flatten);
    </code></pre>
So I can at my leisure call<p><pre><code>    process(items);
    </code></pre>
Or later put `process` in another sequence, or do something like:<p><pre><code>    map(process, groupsOfItems)
    </code></pre>
And I don't see that Trine helps with that.  Am I missing the way to use Trine to build functions, or do I simply have to wrap up a Trine construct in a function that takes a parameter, does its Trine magic, and returns that result?