Commit 47a2c0c
feat(array): add fold to IntArray, FloatArray, ShortArray, ByteArray
Consistent with LongArray/DoubleArray. Uses appropriate functional interfaces:
IntBinaryOperator for IntArray, DoubleBinaryOperator for FloatArray,
LongBinaryOperator for ShortArray/ByteArray (avoids overflow).
Simplify non-nullable branches in numericSum to use fold.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent cbe342a commit 47a2c0c
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
| |||
0 commit comments