Ramda Function Methods
About This Index
This page is the Ramda.js Function index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.
Learn the Ramda.js overview on /ramdajs. Use this page when you need a function API such as R.pipe(), R.curry(), or R.__.
Start with R.curry() and R.pipe(), then R.compose(), R.partial(), and R.__—add converge / useWith when one input fans out to several transforms.
How to Call a Function Method
Import R (or a named helper)—build pipelines with data last and placeholders for gaps:
const R = require("ramda");
const add = R.curry((a, b) => a + b);
add(1)(2); // 3
const f = R.pipe(Math.pow, R.negate, R.inc);
f(3, 4); // -80
const greet = R.replace("{name}", R.__, "Hello, {name}!");
greet("Ada"); // "Hello, Ada!"
const doubleThenInc = R.pipe(R.multiply(2), R.inc);
doubleThenInc(10); // 21
R.partial(R.add, [1])(2); // 3 Ramda Function Methods Table
All Function method guides in this Ramda.js tutorial series (55 tutorials).
Getting Started
5 methodsPlaceholder, curry, pipe, compose, and identity — the core of a Ramda.js function tutorial.
| Method | Description | Tutorial |
|---|---|---|
R.__ | Special placeholder for gaps in curried functions. Official greet = R.replace('{name}', R.__, 'Hello, {name}!'). | Try it |
R.curry() | Turns a function into a curried equivalent. Official addFourNumbers sample yields 10. | Try it |
R.pipe() | Left-to-right composition. Official f = R.pipe(Math.pow, R.negate, R.inc); f(3, 4) is -80. | Try it |
R.compose() | Right-to-left composition — last function runs first. Mirror of R.pipe. | Try it |
R.identity() | Returns its argument unchanged. Useful in pipelines and as a default combiner. | Try it |
Partial Application & Arity
10 methodsFix arguments early, reshape arity, or flip parameter order.
| Method | Description | Tutorial |
|---|---|---|
R.partial() | Fix the first arguments of a function; the rest arrive on the final call. | Try it |
R.partialRight() | Tutorial for the Ramda.js partial right function helper. | Try it |
R.partialObject() | Tutorial for the Ramda.js partial object function helper. | Try it |
R.curryN() | Tutorial for the Ramda.js curry n function helper. | Try it |
R.uncurryN() | Tutorial for the Ramda.js uncurry n function helper. | Try it |
R.binary() | Tutorial for the Ramda.js binary function helper. | Try it |
R.unary() | Tutorial for the Ramda.js unary function helper. | Try it |
R.nAry() | Tutorial for the Ramda.js n ary function helper. | Try it |
R.flip() | Tutorial for the Ramda.js flip function helper. | Try it |
R.nthArg() | Tutorial for the Ramda.js nth arg function helper. | Try it |
Composition & Branching
7 methodsPipe variants, flow, converge, useWith, and juxt for multi-path logic.
| Method | Description | Tutorial |
|---|---|---|
R.pipeWith() | Tutorial for the Ramda.js pipe with function helper. | Try it |
R.composeWith() | Tutorial for the Ramda.js compose with function helper. | Try it |
R.flow() | Tutorial for the Ramda.js flow function helper. | Try it |
R.o() | Tutorial for the Ramda.js o function helper. | Try it |
R.converge() | Run several unary branches on the same input, then combine with a combiner. | Try it |
R.useWith() | Map each argument through its own unary fn, then call the combiner with the results. | Try it |
R.juxt() | Tutorial for the Ramda.js juxt function helper. | Try it |
Apply, Call & Construct
10 methodsSpread arguments, bind context, invoke methods, and wrap constructors.
| Method | Description | Tutorial |
|---|---|---|
R.apply() | Calls fn with an array of arguments — fn.apply(null, args) as a function. | Try it |
R.applyTo() | Tutorial for the Ramda.js apply to function helper. | Try it |
R.applySpec() | Tutorial for the Ramda.js apply spec function helper. | Try it |
R.ap() | Tutorial for the Ramda.js ap function helper. | Try it |
R.call() | Tutorial for the Ramda.js call function helper. | Try it |
R.bind() | Tutorial for the Ramda.js bind function helper. | Try it |
R.construct() | Wraps a constructor so you can new it from an argument list without new syntax. | Try it |
R.constructN() | Tutorial for the Ramda.js construct n function helper. | Try it |
R.unapply() | Tutorial for the Ramda.js unapply function helper. | Try it |
R.invoker() | Tutorial for the Ramda.js invoker function helper. | Try it |
Control & Constants
11 methodsRun once, memoize, tap side effects, promises, and constant helpers.
| Method | Description | Tutorial |
|---|---|---|
R.once() | Wraps a function so it runs at most once; later calls return the first result. | Try it |
R.memoizeWith() | Caches results keyed by a custom key function. Official fibonacci sample. | Try it |
R.tap() | Tutorial for the Ramda.js tap function helper. | Try it |
R.thunkify() | Tutorial for the Ramda.js thunkify function helper. | Try it |
R.tryCatch() | Tutorial for the Ramda.js try catch function helper. | Try it |
R.otherwise() | Tutorial for the Ramda.js otherwise function helper. | Try it |
R.andThen() | Tutorial for the Ramda.js and then function helper. | Try it |
R.always() | Tutorial for the Ramda.js always function helper. | Try it |
R.empty() | Tutorial for the Ramda.js empty function helper. | Try it |
R.f() | Tutorial for the Ramda.js f function helper. | Try it |
R.t() | Tutorial for the Ramda.js t function helper. | Try it |
Comparators
6 methodsBuild sort predicates with ascend, descend, comparator, and on.
| Method | Description | Tutorial |
|---|---|---|
R.ascend() | Tutorial for the Ramda.js ascend function helper. | Try it |
R.descend() | Tutorial for the Ramda.js descend function helper. | Try it |
R.ascendNatural() | Tutorial for the Ramda.js ascend natural function helper. | Try it |
R.descendNatural() | Tutorial for the Ramda.js descend natural function helper. | Try it |
R.comparator() | Tutorial for the Ramda.js comparator function helper. | Try it |
R.on() | Tutorial for the Ramda.js on function helper. | Try it |
Indexed & Lifted
6 methodsAdd index to mappers, lift functions over applicatives, and promap.
| Method | Description | Tutorial |
|---|---|---|
R.addIndex() | Tutorial for the Ramda.js add index function helper. | Try it |
R.addIndexRight() | Tutorial for the Ramda.js add index right function helper. | Try it |
R.lift() | Tutorial for the Ramda.js lift function helper. | Try it |
R.liftN() | Tutorial for the Ramda.js lift n function helper. | Try it |
R.of() | Tutorial for the Ramda.js of function helper. | Try it |
R.promap() | Tutorial for the Ramda.js promap function helper. | Try it |
Frequently Asked Questions
Start with R.pipe()
Open the pipe guide—syntax, examples, and FAQs.
16 people found this page helpful
