Comments (3)
Sorry for late reply.
R.uniq
is a lazy function. It could be possible to omit ()
, but I am not sure if there is any need for it.
R.toPairs
is not lazy (it's not possible to make it lazy). "data-first" and "data-last" use the same version.
from remeda.
omit ()
const obj = { foo: 'bar' };
const result = R.pipe(
obj,
R.toPairs
); // [ [ 'foo', 'bar' ] ]
from remeda.
@BetterCallSKY Hmm that sounds plausible :) But then please help me understand this example from the readme:
// Get first 3 unique values
const arr = [1, 2, 2, 3, 3, 4, 5, 6];
const result = R.pipe(
arr, // only four iterations instead of eight (array.length)
R.map(x => {
console.log('iterate', x);
return x;
}),
R.uniq(),
R.take(3)
); // => [1, 2, 3]
Why is uniq used with parens here then?
from remeda.
Related Issues (20)
- `isObject` documentation is slightly off HOT 4
- `debounce` utils HOT 3
- Add `match` and `matchAll` HOT 4
- Add `add` and `multiply` functions. HOT 10
- Request to not remove compact HOT 3
- [Feature Proposal] Adding Ramda's `evolve` HOT 3
- Add function to get a random item from array HOT 2
- Add isSymbol HOT 1
- Add string manipulation utilities like camelCase, startCase, etc HOT 1
- Add partial, partialRight HOT 2
- Filter types when using isArray break when data type is readonly HOT 2
- [Feature Request]: Object property predicates like `hasProp` (includes proof of concept) HOT 8
- Add round HOT 5
- Add `findSingle` HOT 2
- Add `mapWithFeedback` (aka scan, accumulate, partial_sum, runningReduce) HOT 4
- Add `zipEqual` and `zipLongest` HOT 10
- Add `moveIndex` HOT 3
- Add combinatorial iterators: `product`, `permutations`, `combinations`, etc. HOT 3
- Investigating issues with pre-commit hook/lint-staged.
- In a pipe, even if the result of hasAtLeast is true, the return type is not Object, it is still boolean HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remeda.