ast-al / rangeless Goto Github PK
View Code? Open in Web Editor NEWc++ LINQ -like library of higher-order functions for data manipulation
License: Other
c++ LINQ -like library of higher-order functions for data manipulation
License: Other
The exists_where
operation takes a const Iterable&
which makes it fail when used after fn::transform
or other operators... I think that ones that generate seq
? The issue seems to be that seq.begin
is a non-const operation because seq
is consumable.
I think that exists_where
should work like for_each
or foldl
, both of which take Iterable&&
. It's really just a foldl
with a fixed algorithm that can return early.
First invocation works, second one doesn't:
std::vector<int> a = {1, 2, 3};
a % fn::exists_where([](auto item_a) { return item_a == 1; });
a % fn::transform([](auto item_a) { return item_a; }) % fn::exists_where([](auto item_a) { return item_a == 1; });
I get a compiler error when trying to use this library with a C++17 msvc2019 project:
"inserter" is not a member of "std"
Adding #include <iterator>
fixes this.
I would send a pull request, but I am not experienced enough in C++ to have the confidence.
I have been playing around with rangeless as a faster compiling alternative to std::ranges and ranges-v3. I have been getting some compiler warnings that there are redundant or pessimizing moves in fn::transform and in fn::take_while. Would you consider removing the unnecessary std::move wrappers on lines 1592 and 1846? See this example. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.