This commit is contained in:
alex 2025-05-03 20:38:43 +01:00
parent 9b10dc8535
commit 1eb5f6a995
3 changed files with 41 additions and 35 deletions

View file

@ -141,8 +141,8 @@ describe('mondo sugar', () => {
describe('mondo arithmetic', () => {
let multi =
(op) =>
(init, ...rest) =>
rest.reduce((acc, arg) => op(acc, arg), init);
(init, ...rest) =>
rest.reduce((acc, arg) => op(acc, arg), init);
let lib = {
'+': multi((a, b) => a + b),