You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changelog.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
7
7
---
8
8
9
+
## [Unreleased]
10
+
11
+
### Added
12
+
-**Smart type inference for combinators**: `all`, `sequence`, and `partition` now return `T[]` for homogeneous arrays and preserve tuple types for mixed types.
Combines an array of `Either` values into a single `Either`. Returns `Right` with all values if all are `Right`, or `Left` with all errors if any are `Left`.
526
526
527
+
**Smart Type Inference**: For homogeneous arrays (same type), returns `Either<L[], R[]>`. For mixed types, preserves tuple types.
528
+
527
529
```ts
528
530
import { all, left, right, typeEither } from'holo-fn/either';
Combines an array of `Maybe` values into a single `Maybe` containing an array. Returns `Just` with all values if all are `Just`, or `Nothing` if any is `Nothing`.
322
322
323
+
**Smart Type Inference**: For homogeneous arrays (same type), returns `Maybe<T[]>`. For mixed types, preserves tuple types like `Maybe<[number, string, boolean]>`.
324
+
323
325
```ts
324
326
import { all, just, nothing, typeMaybe } from'holo-fn/maybe';
0 commit comments