diff --git a/JS_Fun_Practice b/JS_Fun_Practice new file mode 160000 index 0000000..dfd64fa --- /dev/null +++ b/JS_Fun_Practice @@ -0,0 +1 @@ +Subproject commit dfd64fa5f66bbd6bb9a1d4b14c13416440866a89 diff --git a/Solutions/ItzJustEric.js b/Solutions/ItzJustEric.js new file mode 100644 index 0000000..f311d7d --- /dev/null +++ b/Solutions/ItzJustEric.js @@ -0,0 +1,115 @@ +// identity(x) ⇒ any + +identity = (x) => { + return x +} + + +//Write a binary function addb that takes two numbers and returns their sum +addb = (a,b) => { + return a + b + +} + + +//subb(a, b) ⇒ number Write a binary function subb that takes two numbers and returns their difference +subb = (a,b) => { + return a - b + +} + + + + + + + + + + + + + + + +module.exports = { + identity, + addb, + subb, + mulb, + minb, + maxb, + add, + sub, + mul, + min, + max, + addRecurse, + mulRecurse, + minRecurse, + maxRecurse, + not, + acc, + accPartial, + accRecurse, + fill, + fillRecurse, + set, + identityf, + addf, + liftf, + pure, + curryb, + curry, + inc, + twiceUnary, + doubl, + square, + twice, + reverseb, + reverse, + composeuTwo, + composeu, + composeb, + composeTwo, + compose, + limitb, + limit, + genFrom, + genTo, + genFromTo, + elementGen, + element, + collect, + filter, + filterTail, + concatTwo, + concat, + concatTail, + gensymf, + gensymff, + fibonaccif, + counter, + revocableb, + revocable, + extract, + m, + addmTwo, + addm, + liftmbM, + liftmb, + liftm, + exp, + expn, + addg, + liftg, + arrayg, + continuizeu, + continuize, + vector, + exploitVector, + vectorSafe, + pubsub, + mapRecurse, + filterRecurse, +}; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 06cf353..f726029 100644 --- a/package-lock.json +++ b/package-lock.json @@ -429,9 +429,9 @@ } }, "node_modules/get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "dev": true, "engines": { "node": "*"