Ramda List Methods
About This Index
This page is the Ramda List index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.
Learn the Ramda overview on /ramdajs. Use this page when you need a list API such as R.map(), R.filter(), or R.reduce().
Start with R.map(), then R.filter(), R.reduce(), and R.pluck()—then browse take/drop, uniq, and zip as needed.
How to Call a List Method
Import R (or a named helper)—arguments are curried and data goes last:
const R = require("ramda");
// or: import { map, filter, reduce, pluck } from "ramda";
const nums = [1, 2, 3, 4];
R.map(x => x * 2, nums); // [2, 4, 6, 8]
R.filter(x => x % 2 === 0, nums); // [2, 4]
R.reduce(R.add, 0, nums); // 10
R.pluck("id", [{ id: 1 }, { id: 2 }]); // [1, 2]
R.take(2, nums); // [1, 2]
R.uniq([1, 2, 1, 3, 2]); // [1, 2, 3]
R.zip(["a", "b"], [1, 2]); // [["a", 1], ["b", 2]] Ramda List Methods Table
All List method guides in this Ramda tutorial series (92 tutorials).
Getting Started
6 methodsCore Ramda list toolkit — map, filter, reduce, pluck, head, and tail.
| Method | Description | Tutorial |
|---|---|---|
R.map() | Apply a function to every item. Official double sample: R.map(x => x * 2, [1, 2, 3]) is [2, 4, 6]. | Try it |
R.filter() | Keep items that pass a predicate. Returns a new array — never mutates the source. | Try it |
R.reduce() | Fold a list left to right with an accumulator. Official R.reduce(R.subtract, 0, [1, 2, 3, 4]) is -10. | Try it |
R.pluck() | Map R.prop(key) over a list of objects. Official R.pluck('a', [{a: 1}, {a: 2}]) is [1, 2]. | Try it |
R.head() | Tutorial for the Ramda.js head list method. | Try it |
R.tail() | Tutorial for the Ramda.js tail list method. | Try it |
Search & Test
11 methodsFind items, test every/any/none, reject, and locate indexes.
| Method | Description | Tutorial |
|---|---|---|
R.find() | Return the first item matching a predicate, or undefined if none match. | Try it |
R.findIndex() | Tutorial for the Ramda.js find index list method. | Try it |
R.findLast() | Tutorial for the Ramda.js find last list method. | Try it |
R.findLastIndex() | Tutorial for the Ramda.js find last index list method. | Try it |
R.all() | True when every item passes the predicate. Short-circuits on the first failure. | Try it |
R.any() | Tutorial for the Ramda.js any list method. | Try it |
R.none() | Tutorial for the Ramda.js none list method. | Try it |
R.includes() | Tutorial for the Ramda.js includes list method. | Try it |
R.indexOf() | Tutorial for the Ramda.js index of list method. | Try it |
R.lastIndexOf() | Tutorial for the Ramda.js last index of list method. | Try it |
R.reject() | Tutorial for the Ramda.js reject list method. | Try it |
Update & Splice
11 methodsAdjust slots, insert, remove, move, and concat — always immutable.
| Method | Description | Tutorial |
|---|---|---|
R.adjust() | Apply a function at one index. Official R.adjust(1, R.toUpper, ['a', 'b', 'c']) is ['a', 'B', 'c']. | Try it |
R.update() | Tutorial for the Ramda.js update list method. | Try it |
R.insert() | Tutorial for the Ramda.js insert list method. | Try it |
R.insertAll() | Tutorial for the Ramda.js insert all list method. | Try it |
R.remove() | Tutorial for the Ramda.js remove list method. | Try it |
R.move() | Tutorial for the Ramda.js move list method. | Try it |
R.swap() | Tutorial for the Ramda.js swap list method. | Try it |
R.append() | Tutorial for the Ramda.js append list method. | Try it |
R.prepend() | Tutorial for the Ramda.js prepend list method. | Try it |
R.concat() | Tutorial for the Ramda.js concat list method. | Try it |
R.without() | Tutorial for the Ramda.js without list method. | Try it |
Slice & Split
13 methodstake, drop, slice, and split lists by count or predicate.
| Method | Description | Tutorial |
|---|---|---|
R.take() | Tutorial for the Ramda.js take list method. | Try it |
R.takeWhile() | Tutorial for the Ramda.js take while list method. | Try it |
R.takeLast() | Tutorial for the Ramda.js take last list method. | Try it |
R.takeLastWhile() | Tutorial for the Ramda.js take last while list method. | Try it |
R.drop() | Tutorial for the Ramda.js drop list method. | Try it |
R.dropWhile() | Tutorial for the Ramda.js drop while list method. | Try it |
R.dropLast() | Tutorial for the Ramda.js drop last list method. | Try it |
R.dropLastWhile() | Tutorial for the Ramda.js drop last while list method. | Try it |
R.slice() | Tutorial for the Ramda.js slice list method. | Try it |
R.splitAt() | Tutorial for the Ramda.js split at list method. | Try it |
R.splitEvery() | Tutorial for the Ramda.js split every list method. | Try it |
R.splitWhen() | Tutorial for the Ramda.js split when list method. | Try it |
R.splitWhenever() | Tutorial for the Ramda.js split whenever list method. | Try it |
Transform & Iterate
11 methodsMap variants, flatten, traverse, sort, and side-effect iteration.
| Method | Description | Tutorial |
|---|---|---|
R.mapAccum() | Tutorial for the Ramda.js map accum list method. | Try it |
R.mapAccumRight() | Tutorial for the Ramda.js map accum right list method. | Try it |
R.chain() | Tutorial for the Ramda.js chain list method. | Try it |
R.flatten() | Tutorial for the Ramda.js flatten list method. | Try it |
R.unnest() | Tutorial for the Ramda.js unnest list method. | Try it |
R.traverse() | Tutorial for the Ramda.js traverse list method. | Try it |
R.forEach() | Tutorial for the Ramda.js for each list method. | Try it |
R.reverse() | Tutorial for the Ramda.js reverse list method. | Try it |
R.sort() | Tutorial for the Ramda.js sort list method. | Try it |
R.intersperse() | Tutorial for the Ramda.js intersperse list method. | Try it |
R.transpose() | Tutorial for the Ramda.js transpose list method. | Try it |
Fold & Transduce
8 methodsreduce variants, scan, into, transduce, and rebuild.
| Method | Description | Tutorial |
|---|---|---|
R.reduceRight() | Tutorial for the Ramda.js reduce right list method. | Try it |
R.reduceBy() | Tutorial for the Ramda.js reduce by list method. | Try it |
R.reduceWhile() | Tutorial for the Ramda.js reduce while list method. | Try it |
R.reduced() | Tutorial for the Ramda.js reduced list method. | Try it |
R.scan() | Tutorial for the Ramda.js scan list method. | Try it |
R.into() | Tutorial for the Ramda.js into list method. | Try it |
R.transduce() | Compose map/filter/reduce into one efficient pass without intermediate arrays. | Try it |
R.rebuild() | Tutorial for the Ramda.js rebuild list method. | Try it |
Group & Partition
8 methodsgroupBy, indexBy, count, partition, and pair helpers.
| Method | Description | Tutorial |
|---|---|---|
R.groupBy() | Bucket items by a key function. Returns an object of arrays keyed by the result of fn. | Try it |
R.groupWith() | Tutorial for the Ramda.js group with list method. | Try it |
R.indexBy() | Tutorial for the Ramda.js index by list method. | Try it |
R.collectBy() | Tutorial for the Ramda.js collect by list method. | Try it |
R.count() | Tutorial for the Ramda.js count list method. | Try it |
R.partition() | Tutorial for the Ramda.js partition list method. | Try it |
R.pair() | Tutorial for the Ramda.js pair list method. | Try it |
R.fromPairs() | Tutorial for the Ramda.js from pairs list method. | Try it |
Unique & Dedupe
6 methodsuniq variants and drop-repeats helpers.
| Method | Description | Tutorial |
|---|---|---|
R.uniq() | Tutorial for the Ramda.js uniq list method. | Try it |
R.uniqBy() | Tutorial for the Ramda.js uniq by list method. | Try it |
R.uniqWith() | Tutorial for the Ramda.js uniq with list method. | Try it |
R.dropRepeats() | Tutorial for the Ramda.js drop repeats list method. | Try it |
R.dropRepeatsBy() | Tutorial for the Ramda.js drop repeats by list method. | Try it |
R.dropRepeatsWith() | Tutorial for the Ramda.js drop repeats with list method. | Try it |
Zip & Generate
8 methodszip lists, Cartesian products, range, times, repeat, and unfold.
| Method | Description | Tutorial |
|---|---|---|
R.zip() | Tutorial for the Ramda.js zip list method. | Try it |
R.zipWith() | Combine two lists with a function. Official R.zipWith(R.add, [1, 2, 3], [4, 5, 6]) is [5, 7, 9]. | Try it |
R.zipObj() | Tutorial for the Ramda.js zip obj list method. | Try it |
R.xprod() | Tutorial for the Ramda.js xprod list method. | Try it |
R.range() | Tutorial for the Ramda.js range list method. | Try it |
R.times() | Tutorial for the Ramda.js times list method. | Try it |
R.repeat() | Tutorial for the Ramda.js repeat list method. | Try it |
R.unfold() | Tutorial for the Ramda.js unfold list method. | Try it |
Access & Misc
10 methodsnth, length, join, mergeAll, sequence, aperture, and prefix/suffix tests.
| Method | Description | Tutorial |
|---|---|---|
R.startsWith() | Tutorial for the Ramda.js starts with list method. | Try it |
R.endsWith() | Tutorial for the Ramda.js ends with list method. | Try it |
R.nth() | Tutorial for the Ramda.js nth list method. | Try it |
R.length() | Tutorial for the Ramda.js length list method. | Try it |
R.init() | Tutorial for the Ramda.js init list method. | Try it |
R.last() | Tutorial for the Ramda.js last list method. | Try it |
R.join() | Tutorial for the Ramda.js join list method. | Try it |
R.mergeAll() | Tutorial for the Ramda.js merge all list method. | Try it |
R.sequence() | Tutorial for the Ramda.js sequence list method. | Try it |
R.aperture() | Tutorial for the Ramda.js aperture list method. | Try it |
Frequently Asked Questions
Start with R.map()
Open the map guide—syntax, examples, and FAQs.
16 people found this page helpful
