Skip to content

feat(Record): make fromIterableBy dual/pipeable#6111

Open
mitre88 wants to merge 1 commit intoEffect-TS:mainfrom
mitre88:fix/record-fromIterableBy-dual
Open

feat(Record): make fromIterableBy dual/pipeable#6111
mitre88 wants to merge 1 commit intoEffect-TS:mainfrom
mitre88:fix/record-fromIterableBy-dual

Conversation

@mitre88
Copy link

@mitre88 mitre88 commented Mar 6, 2026

Summary

Make Record.fromIterableBy support both data-first and data-last (pipeable) calling conventions, consistent with Record.fromIterableWith and other dual APIs in the Record module.

Before

// Only data-first works
pipe(rows, (rows) => Record.fromIterableBy(rows, Struct.get("authEmail")))

After

// Both styles work
Record.fromIterableBy(rows, Struct.get("authEmail"))       // data-first
pipe(rows, Record.fromIterableBy(Struct.get("authEmail"))) // data-last

Closes #6092

Make Record.fromIterableBy support both data-first and data-last
(pipeable) calling conventions, consistent with fromIterableWith
and other dual APIs in the Record module.

Closes Effect-TS#6092
@mitre88 mitre88 requested a review from mikearnaldi as a code owner March 6, 2026 18:12
@github-project-automation github-project-automation bot moved this to Discussion Ongoing in PR Backlog Mar 6, 2026
@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2026

⚠️ No Changeset found

Latest commit: 2cd00ba

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

Record.fromIterableBy is not dual/curried (awkward in pipe)

1 participant