Ramda Function Methods

Beginner
8 min read
Updated: Nov 2026
55 method guides
Method index

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.__.

Beginner path.

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:

Ramda
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 methods

Placeholder, curry, pipe, compose, and identity — the core of a Ramda.js function tutorial.

MethodDescriptionTutorial
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 methods

Fix arguments early, reshape arity, or flip parameter order.

MethodDescriptionTutorial
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 methods

Pipe variants, flow, converge, useWith, and juxt for multi-path logic.

MethodDescriptionTutorial
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 methods

Spread arguments, bind context, invoke methods, and wrap constructors.

MethodDescriptionTutorial
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 methods

Run once, memoize, tap side effects, promises, and constant helpers.

MethodDescriptionTutorial
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 methods

Build sort predicates with ascend, descend, comparator, and on.

MethodDescriptionTutorial
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 methods

Add index to mappers, lift functions over applicatives, and promap.

MethodDescriptionTutorial
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

They are helpers for currying, partial application, composition (pipe, compose), branching (converge, useWith, juxt), applying arguments, control (once, memoizeWith, tap), and comparators (ascend, on)—how functions are built and chained in a Ramda.js tutorial.
Both chain functions in opposite directions. R.pipe(f, g, h) runs left to right—f first. R.compose(f, g, h) runs right to left—h first. Example: R.pipe(Math.pow, R.negate, R.inc)(3, 4) is -80.
R.__ is Ramda’s placeholder. Pass it into a curried function to leave a gap so a later call can fill that slot—for example R.replace('{name}', R.__, 'Hello, {name}!')('Ada').
R.curry turns a function into a curried equivalent that accepts arguments one at a time or in groups. R.partial fixes the first arguments now and waits for the rest. Prefer curry for reusable pipeline steps; partial when some args are already known.
Start with R.curry() and R.pipe(), then R.compose(), R.partial(), and R.__ from the table below.

Start with R.pipe()

Open the pipe guide—syntax, examples, and FAQs.

R.pipe() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

16 people found this page helpful