\

Namespaces

YaLinqo

Functions

from()

from(array|\Iterator|\IteratorAggregate|\YaLinqo\Enumerable  $source) : \YaLinqo\Enumerable

Create Enumerable from an array or any other traversible source.

Parameters

array|\Iterator|\IteratorAggregate|\YaLinqo\Enumerable $source

Throws

\InvalidArgumentException

If source is not array or Traversible or Enumerable.

Returns

\YaLinqo\Enumerable