Skip to content

Commit d6aba78

Browse files
committed
Update for version v1.4.0.
1 parent f9f3688 commit d6aba78

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# IterTools PHP Change Log
22

3-
## v1.4.0 - TBD
3+
## v1.4.0 - 2023-02-15
44

55
### New Features
66
* Single

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,11 +1528,11 @@ $boolean = Summary::exactlyN($ages, $n, $predicate);
15281528
### Is Partitioned
15291529
Returns true if all elements of given collection that satisfy the predicate appear before all elements that don't.
15301530

1531-
```Summary::isPartitioned(iterable $data, callable $predicate = null): bool```
1532-
15331531
- Returns true for empty collection or for collection with single item.
15341532
- Default predicate if not provided is the boolean value of each data item.
15351533

1534+
```Summary::isPartitioned(iterable $data, callable $predicate = null): bool```
1535+
15361536
```php
15371537
use IterTools\Summary;
15381538

@@ -2981,19 +2981,19 @@ $boolean = Stream::of($twoTruthsAndALie)->exactlyN($n);
29812981
##### Is Partitioned
29822982
Returns true if all elements of given collection that satisfy the predicate appear before all elements that don't.
29832983

2984-
```$stream->isPartitioned(callable $predicate = null): bool```
2985-
29862984
- Returns true for empty collection or for collection with single item.
29872985
- Default predicate if not provided is the boolean value of each data item.
29882986

2987+
```$stream->isPartitioned(callable $predicate = null): bool```
2988+
29892989
```php
29902990
use IterTools\Summary;
29912991

29922992
$numbers = [0, 2, 4, 1, 3, 5];
29932993
$evensBeforeOdds = fn ($item) => $item % 2 === 0;
29942994

29952995
$boolean = Stream::($numbers)
2996-
->isPartitioned($numbers, $evensBeforeOdds);
2996+
->isPartitioned($evensBeforeOdds);
29972997
// true
29982998
```
29992999

0 commit comments

Comments
 (0)