lambdish / phunctional Goto Github PK
View Code? Open in Web Editor NEW⚡️ λ PHP functional library focused on simplicity and performance
License: MIT License
⚡️ λ PHP functional library focused on simplicity and performance
License: MIT License
Based on array_chunk
I'd like to have a group_by function like this:
group_by(array('one', 'two', 'three'), 'strlen');
=> array(3 => array('one', 'two'), 5 => array('three'))
I'm available to implement it.
What was the reason behind filter preserving the original array's keys? Is there a benefit to it? I'm most often filtering arrays where the key is an integer, so I'd expected filter to act more like it does in other languages creating a new array with values accessible by index.
I get that updating filter would lead to breaking changes, and there are probably times where the current implementation comes in handy, but it'd be useful to to have a function that filters an array and returns a new array that starts at zero.
If the maintainers feel like it would be useful and extend what phunctional is trying to do, I could work on an implementation.
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.