Skip to content

Commit

Permalink
Merge pull request #4173 from gregoriohc/5.6
Browse files Browse the repository at this point in the history
[5.6] Add "min" and "max" to collection higher order proxies
  • Loading branch information
taylorotwell authored Mar 16, 2018
2 parents 0612f0b + 6c7c097 commit a133d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ The `zip` method merges together the values of the given array with the values o
<a name="higher-order-messages"></a>
## Higher Order Messages

Collections also provide support for "higher order messages", which are short-cuts for performing common actions on collections. The collection methods that provide higher order messages are: `average`, `avg`, `contains`, `each`, `every`, `filter`, `first`, `flatMap`, `map`, `partition`, `reject`, `sortBy`, `sortByDesc`, `sum`, and `unique`.
Collections also provide support for "higher order messages", which are short-cuts for performing common actions on collections. The collection methods that provide higher order messages are: `average`, `avg`, `contains`, `each`, `every`, `filter`, `first`, `flatMap`, `map`, `max`, `min`, `partition`, `reject`, `sortBy`, `sortByDesc`, `sum`, and `unique`.

Each higher order message can be accessed as a dynamic property on a collection instance. For instance, let's use the `each` higher order message to call a method on each object within a collection:

Expand Down

0 comments on commit a133d94

Please sign in to comment.