iter icon indicating copy to clipboard operation
iter copied to clipboard

Iteration primitives using generators

Results 18 iter issues
Sort by recently updated
recently updated
newest added
trafficstars

Would it be nice to have some kind of fluent interface? That would allow for really readable code like: ```` toIter([1, 2, 3, 4, 5, 6]) ->filter(function($v) { return $v...

# changed log - implemnt the customized ```Iterator``` and ```IteratorAggregate``` interface to test the ```count``` and ```isEmpty``` function. - set correct ```.travis.yml```.The default dist is trusty. Remove ```--prefer-dist``` because it...

add permutations and combinations functions

I've come across a rare case where the behavior of `\iter\isEmpty()` can indirectly cause unexpected consumption from iterators in normal use cases. Specifically, in the case where `isEmpty` is provided...

`search()` only finds the item you're searching for in the values of the iterable. e.g. `search('foo', it)` can only find `'foo'`, or nothing. If we want to know the key...

One super common use case is finding the index at which you need to insert something into an array. Built-in `array_search()` does this if you are looking for an element...

Although we can trivially get the first element of an iterable with `\iter\take(1, ...)`, it is non-trivial to get the last value.