Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 19, 2019
1 parent 0d7e849 commit 1bb26c2
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Collection::with(['A' => 'A', 'B' => 'B', 'C' => 'C', 'D' => 'D', 'E' => 'E'])
// Infinitely loop over numbers, square them, filter those that are not divisible by 5, take the first 100 of them.
Collection::range(0, INF)
->map(static function ($number) {
return $number ** 2;
return $number ** 3;
})
->filter(static function ($number) {
return $number % 5;
Expand Down Expand Up @@ -180,34 +180,36 @@ the methods always return the same values for the same inputs.
| ------------- | --------------------- | -------------- |
| `all` | array | [Collection.php](./src/Collection.php)
| `append` | new Collection object | [Append.php](./src/Operation/Append.php)
| `apply` | new Collection object | [Apply.php](./src/Operation/Append.php)
| `chunk` | new Collection object | [Chunk.php](./src/Operation/Append.php)
| `collapse` | new Collection object | [Collapse.php](./src/Operation/Append.php)
| `combine` | new Collection object | [Combine.php](./src/Operation/Append.php)
| `apply` | new Collection object | [Apply.php](./src/Operation/Apply.php)
| `chunk` | new Collection object | [Chunk.php](./src/Operation/Chunk.php)
| `collapse` | new Collection object | [Collapse.php](./src/Operation/Collapse.php)
| `combine` | new Collection object | [Combine.php](./src/Operation/Combine.php)
| `count` | int | [Collection.php](./src/Collection.php)
| `filter` | new Collection object | [Filter.php](./src/Operation/Append.php)
| `filter` | new Collection object | [Filter.php](./src/Operation/Filter.php)
| `first` | mixed | [Collection.php](./src/Collection.php)
| `flatten` | new Collection object | [Flatten.php](./src/Operation/Append.php)
| `flip` | new Collection object | [Flip.php](./src/Operation/Append.php)
| `forget` | new Collection object | [Forget.php](./src/Operation/Append.php)
| `flatten` | new Collection object | [Flatten.php](./src/Operation/Flatten.php)
| `flip` | new Collection object | [Flip.php](./src/Operation/Flip.php)
| `forget` | new Collection object | [Forget.php](./src/Operation/Forget.php)
| `get` | mixed | [Collection.php](./src/Collection.php)
| `getIterator` | Iterator | [Collection.php](./src/Collection.php)
| `keys` | new Collection object | [Keys.php](./src/Operation/Append.php)
| `limit` | new Collection object | [Limit.php](./src/Operation/Append.php)
| `map` | new Collection object | [Map.php](./src/Operation/Append.php)
| `merge` | new Collection object | [Merge.php](./src/Operation/Append.php)
| `normalize` | new Collection object | [Normalize.php](./src/Operation/Append.php)
| `nth` | new Collection object | [Nth.php](./src/Operation/Append.php)
| `only` | new Collection object | [Only.php](./src/Operation/Append.php)
| `pad` | new Collection object | [Pad.php](./src/Operation/Append.php)
| `keys` | new Collection object | [Keys.php](./src/Operation/Keys.php)
| `limit` | new Collection object | [Limit.php](./src/Operation/Limit.php)
| `map` | new Collection object | [Map.php](./src/Operation/Map.php)
| `merge` | new Collection object | [Merge.php](./src/Operation/Merge.php)
| `normalize` | new Collection object | [Normalize.php](./src/Operation/Normalize.php)
| `nth` | new Collection object | [Nth.php](./src/Operation/Nth.php)
| `only` | new Collection object | [Only.php](./src/Operation/Only.php)
| `pad` | new Collection object | [Pad.php](./src/Operation/Pad.php)
| `pluck` | new Collection object | [Pluck.php](./src/Operation/Pluck.php)
| `prepend` | new Collection object | [Prepend.php](./src/Operation/Append.php)
| `prepend` | new Collection object | [Prepend.php](./src/Operation/Prepend.php)
| `proxy` | new Collection object | [Proxy.php](./src/Operation/Proxy.php)
| `rebase` | new Collection object | [Rebase.php](./src/Operation/Rebase.php)
| `reduce` | mixed | [Collection.php](./src/Collection.php)
| `run` | new Collection object | [Collection.php](./src/Collection.php)
| `skip` | new Collection object | [Skip.php](./src/Operation/Append.php)
| `slice` | new Collection object | [Slice.php](./src/Operation/Append.php)
| `walk` | new Collection object | [Walk.php](./src/Operation/Append.php)
| `zip` | new Collection object | [Zip.php](./src/Operation/Append.php)
| `skip` | new Collection object | [Skip.php](./src/Operation/Skip.php)
| `slice` | new Collection object | [Slice.php](./src/Operation/Slice.php)
| `walk` | new Collection object | [Walk.php](./src/Operation/Walk.php)
| `zip` | new Collection object | [Zip.php](./src/Operation/Zip.php)

All those methods are described in [the Collection interface](./src/Contract/Collection.php), feel free to check it out for more information
about the kind of parameters they require.
Expand Down

0 comments on commit 1bb26c2

Please sign in to comment.