@@ -12531,6 +12531,10 @@ public infix fun CharArray.union(other: Iterable<Char>): Set<Char> {
12531
12531
/**
12532
12532
* Returns `true` if all elements match the given [predicate].
12533
12533
*
12534
+ * Note that if the array contains no elements, the function returns `true`
12535
+ * because there are no elements in it that _do not_ match the predicate.
12536
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12537
+ *
12534
12538
* @sample samples.collections.Collections.Aggregates.all
12535
12539
*/
12536
12540
public inline fun <T> Array<out T>.all(predicate: (T) -> Boolean): Boolean {
@@ -12541,6 +12545,10 @@ public inline fun <T> Array<out T>.all(predicate: (T) -> Boolean): Boolean {
12541
12545
/**
12542
12546
* Returns `true` if all elements match the given [predicate].
12543
12547
*
12548
+ * Note that if the array contains no elements, the function returns `true`
12549
+ * because there are no elements in it that _do not_ match the predicate.
12550
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12551
+ *
12544
12552
* @sample samples.collections.Collections.Aggregates.all
12545
12553
*/
12546
12554
public inline fun ByteArray.all(predicate: (Byte) -> Boolean): Boolean {
@@ -12551,6 +12559,10 @@ public inline fun ByteArray.all(predicate: (Byte) -> Boolean): Boolean {
12551
12559
/**
12552
12560
* Returns `true` if all elements match the given [predicate].
12553
12561
*
12562
+ * Note that if the array contains no elements, the function returns `true`
12563
+ * because there are no elements in it that _do not_ match the predicate.
12564
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12565
+ *
12554
12566
* @sample samples.collections.Collections.Aggregates.all
12555
12567
*/
12556
12568
public inline fun ShortArray.all(predicate: (Short) -> Boolean): Boolean {
@@ -12561,6 +12573,10 @@ public inline fun ShortArray.all(predicate: (Short) -> Boolean): Boolean {
12561
12573
/**
12562
12574
* Returns `true` if all elements match the given [predicate].
12563
12575
*
12576
+ * Note that if the array contains no elements, the function returns `true`
12577
+ * because there are no elements in it that _do not_ match the predicate.
12578
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12579
+ *
12564
12580
* @sample samples.collections.Collections.Aggregates.all
12565
12581
*/
12566
12582
public inline fun IntArray.all(predicate: (Int) -> Boolean): Boolean {
@@ -12571,6 +12587,10 @@ public inline fun IntArray.all(predicate: (Int) -> Boolean): Boolean {
12571
12587
/**
12572
12588
* Returns `true` if all elements match the given [predicate].
12573
12589
*
12590
+ * Note that if the array contains no elements, the function returns `true`
12591
+ * because there are no elements in it that _do not_ match the predicate.
12592
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12593
+ *
12574
12594
* @sample samples.collections.Collections.Aggregates.all
12575
12595
*/
12576
12596
public inline fun LongArray.all(predicate: (Long) -> Boolean): Boolean {
@@ -12581,6 +12601,10 @@ public inline fun LongArray.all(predicate: (Long) -> Boolean): Boolean {
12581
12601
/**
12582
12602
* Returns `true` if all elements match the given [predicate].
12583
12603
*
12604
+ * Note that if the array contains no elements, the function returns `true`
12605
+ * because there are no elements in it that _do not_ match the predicate.
12606
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12607
+ *
12584
12608
* @sample samples.collections.Collections.Aggregates.all
12585
12609
*/
12586
12610
public inline fun FloatArray.all(predicate: (Float) -> Boolean): Boolean {
@@ -12591,6 +12615,10 @@ public inline fun FloatArray.all(predicate: (Float) -> Boolean): Boolean {
12591
12615
/**
12592
12616
* Returns `true` if all elements match the given [predicate].
12593
12617
*
12618
+ * Note that if the array contains no elements, the function returns `true`
12619
+ * because there are no elements in it that _do not_ match the predicate.
12620
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12621
+ *
12594
12622
* @sample samples.collections.Collections.Aggregates.all
12595
12623
*/
12596
12624
public inline fun DoubleArray.all(predicate: (Double) -> Boolean): Boolean {
@@ -12601,6 +12629,10 @@ public inline fun DoubleArray.all(predicate: (Double) -> Boolean): Boolean {
12601
12629
/**
12602
12630
* Returns `true` if all elements match the given [predicate].
12603
12631
*
12632
+ * Note that if the array contains no elements, the function returns `true`
12633
+ * because there are no elements in it that _do not_ match the predicate.
12634
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12635
+ *
12604
12636
* @sample samples.collections.Collections.Aggregates.all
12605
12637
*/
12606
12638
public inline fun BooleanArray.all(predicate: (Boolean) -> Boolean): Boolean {
@@ -12611,6 +12643,10 @@ public inline fun BooleanArray.all(predicate: (Boolean) -> Boolean): Boolean {
12611
12643
/**
12612
12644
* Returns `true` if all elements match the given [predicate].
12613
12645
*
12646
+ * Note that if the array contains no elements, the function returns `true`
12647
+ * because there are no elements in it that _do not_ match the predicate.
12648
+ * See a more detailed explanation of this logic concept in ["Vacuous truth"](https://en.wikipedia.org/wiki/Vacuous_truth) article.
12649
+ *
12614
12650
* @sample samples.collections.Collections.Aggregates.all
12615
12651
*/
12616
12652
public inline fun CharArray.all(predicate: (Char) -> Boolean): Boolean {
0 commit comments