How to use Ramda pipe?
问题 Background I am trying to compose 2 functions using Ramda, but I am having issue with pipe , meaning I don't know how to use it. Code Let's imagine I have a function that returns an array: var createQuery = params => [ getSQLQuery( params ), [ getMarket() ] ]; var getSQLQuery = ( { lang } ) => `My query is ${lang}`; var getMarket = () => "en_en" So, when calling createQuery({ lang: "es" }) I would have the following output: [ "My query is es", ["en_en"] ] ; Now, let's also assume I am a nasty