Skip to content

Add Either.forEach #4981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: next-minor
Choose a base branch
from

Conversation

vinassefranche
Copy link
Contributor

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Add Either.forEach

import { Either } from "effect"

Either.forEach([1, 2], n => Either.right(n * 2)) // => Either.right([2, 4])
Either.forEach([1, 2], n => n === 1 ? Either.left("error") : Either.right(1)) // => Either.left("error")

Related

  • Related Issue #
  • Closes #

@github-project-automation github-project-automation bot moved this to Discussion Ongoing in PR Backlog Jun 4, 2025
Copy link

changeset-bot bot commented Jun 4, 2025

🦋 Changeset detected

Latest commit: 14bad7b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
effect Minor
@effect/cli Major
@effect/cluster Major
@effect/experimental Major
@effect/opentelemetry Major
@effect/platform-browser Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/platform Major
@effect/printer-ansi Major
@effect/printer Major
@effect/rpc Major
@effect/sql-clickhouse Major
@effect/sql-d1 Major
@effect/sql-drizzle Major
@effect/sql-kysely Major
@effect/sql-libsql Major
@effect/sql-mssql Major
@effect/sql-mysql2 Major
@effect/sql-pg Major
@effect/sql-sqlite-bun Major
@effect/sql-sqlite-do Major
@effect/sql-sqlite-node Major
@effect/sql-sqlite-react-native Major
@effect/sql-sqlite-wasm Major
@effect/sql Major
@effect/typeclass Major
@effect/vitest Major
@effect/workflow Major
@effect/ai Major
@effect/ai-amazon-bedrock Major
@effect/ai-anthropic Major
@effect/ai-google Major
@effect/ai-openai Major

Not sure what this means? Click here to learn what changesets are.

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

@effect-bot effect-bot force-pushed the next-minor branch 26 times, most recently from aa74683 to ad4ca8f Compare June 9, 2025 23:11
@effect-bot effect-bot force-pushed the next-minor branch 16 times, most recently from 0d091d8 to 75d8acb Compare July 20, 2025 09:48
@tim-smart
Copy link
Contributor

/rebase

@effect-bot effect-bot force-pushed the add-either-foreach branch from d78e799 to d5bcc48 Compare July 21, 2025 21:25
@effect-bot effect-bot force-pushed the next-minor branch 3 times, most recently from f2312ff to 7e10415 Compare July 21, 2025 22:21
@effect-bot effect-bot force-pushed the next-minor branch 5 times, most recently from 5af70d5 to f91541e Compare August 1, 2025 17:37
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.

2 participants