psliwa / fluent-traversable Goto Github PK
View Code? Open in Web Editor NEWSupport for operating on collections and arrays by functional way. Inspired by guava's FluentIterable, java8 Stream framework and scala stuff.
License: MIT License
Support for operating on collections and arrays by functional way. Inspired by guava's FluentIterable, java8 Stream framework and scala stuff.
License: MIT License
The name of FluentComposer::forArray
is misleading because it does not only accept arrays but also Traversable
. I would expect a type hint array
for the parameter.
FluentComposer::forValue
should assert that a value has been passed instead of hiding the wrong call by using no values []
(source).
Further, a non-strict version FluentComposer::forIterable
or FluentComposer::forTraversable
might be added.
the iterable pseudo-type [...] is an array or an object implementing Traversable
see http://php.net/manual/en/function.is-iterable.php
is_iterable
(introduced in PHP 7) is similar to FluentTraversable::isTraversable
. Since the term Traversable
is used for different types (built-in Traversable
vs. FluentTraversable
) FluentComposer::forIterable
might be more accurate than FluentComposer::forTraversable
.
Actually, FluentTraversable::from
accepts also FluentTraversable
which is not an Iterable
but that could be fixed by implementing IteratorAggregate
or Iterator
.
like traversing a data-tree? say objects with children properties.
As title, this package still supports the old php-5.x
versions.
It's time to bump into php-7.x
versions because the php-7.0
version has been released for about three years.
@psliwa, what do you think about this issue?
Is there something against releasing version 1.0.0 (see How do I know when to release 1.0.0?)?
Hi,
I am new in PHP and I want to use your great library in my project, but i can't use composer. Did you explain how to use in other means?
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.