Skip to content

Commit bdaca43

Browse files
committed
Document optional distinct function
1 parent e008d33 commit bdaca43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The following operations return a new `Sequence` instance on which more intermed
100100
* **peek** - Calls a function for each element in the sequence; especially useful for debugging, e.g. `peek('var_dump', [])`.
101101
* **counting** - Increments the integer given as its argument for each element in the sequence.
102102
* **flatten** - Flattens sequences inside the sequence and returns a new list containing all values from all sequences.
103-
* **distinct** - Returns a new sequence which only consists of unique elements. Uniqueness is calculated using the `util.Objects::hashOf()` method.
103+
* **distinct** - Returns a new sequence which only consists of unique elements. Uniqueness is calculated using the `util.Objects::hashOf()` method by default (*but can be passed another function*).
104104
* **sorted** - Returns a sorted collection. Can be invoked with a comparator function, a `util.Comparator` instance or the sort flags from PHP's sort() function (e.g. `SORT_NUMERIC | SORT_DESC`).
105105

106106
Terminal operations

0 commit comments

Comments
 (0)