From efc54b447788d325ec38222d3cb1ec5e98c1c030 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 29 Aug 2021 15:23:52 +0100 Subject: Array fold_right --- src/ffi.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ffi.js') diff --git a/src/ffi.js b/src/ffi.js index 91a2f73..81362bb 100644 --- a/src/ffi.js +++ b/src/ffi.js @@ -13,3 +13,7 @@ export function length(thing) { export function reduce(thing, acc, fn) { return thing.reduce(fn, acc); } + +export function reduceRight(thing, acc, fn) { + return thing.reduceRight(fn, acc); +} -- cgit v1.2.3