Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
byteshiva committed Mar 25, 2019
1 parent 9b09bc3 commit d615dec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functionalprogramming/day185/funcday185/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const R = require('ramda');

const rreduced1 = R.reduce((acc, item) => item > 3 ? R.reduced(acc) : acc.concat(item), [], [1, 2, 3, 4, 5]) // [1, 2, 3]

console.log(rreduced1);
12 changes: 12 additions & 0 deletions functionalprogramming/day185/funcday185/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "funcday185",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}

0 comments on commit d615dec

Please sign in to comment.