Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rotexdegba committed May 6, 2018
1 parent 3b7b9b9 commit 0650889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ To check if a key exists in the collection, you can call `isset` like so:
}
```
* **`toArray()`:** Returns an array containing all items in the collection object
* **`transform(callable $transformer)`:** Modifies each item in a collection object via a callback with the following signature `function($key, $item)` that returns a value that will replace $item in the collection. The `$key` and `$item` parameters are each key and item pair contained in the collection.
* **`transform(callable $transformer)`:** Modifies each item in a collection object via a callback with the following signature `function($key, $item)` that returns a value that will replace each item in the collection. The `$key` and `$item` parameters are each key and item pairs contained in the collection.
```php
$collection_of_ints =
new \VersatileCollections\GenericCollection(2, 4, 6, 8);
Expand Down

0 comments on commit 0650889

Please sign in to comment.