We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72bc732 commit 8a0f64fCopy full SHA for 8a0f64f
README.md
@@ -116,7 +116,7 @@ interface SomeInterface
116
{
117
/**
118
* Return an iterable list of items
119
- *
+ *
120
* @return iterable
121
*/
122
public function getItems(): iterable;
@@ -150,7 +150,7 @@ $isFruit = function ($eatable) {
150
return 'potato' !== $eatable;
151
};
152
153
-var_dump(iterator_to_array(iterable($data)->withFilter($isFruit)->withMap('strtoupper'))); // ['banana', 'pineapple']
+var_dump(iterator_to_array(iterable($data)->filter($isFruit)->map('strtoupper'))); // ['banana', 'pineapple']
154
```
155
156
Installation
@@ -170,4 +170,4 @@ Unit tests
170
==========
171
172
./vendor/bin/phpunit
173
-```
+```
0 commit comments