effect icon indicating copy to clipboard operation
effect copied to clipboard

Add `Either.forEach`

Open vinassefranche opened this issue 6 months ago • 2 comments

Type

  • [ ] Refactor
  • [x] 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 #

vinassefranche avatar Jun 04 '25 12:06 vinassefranche

🦋 Changeset detected

Latest commit: f68c414cc1226114ceb6a454f9476db5d4cb4f44

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

This PR includes changesets to release 36 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
@effect/ai-openrouter 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

changeset-bot[bot] avatar Jun 04 '25 12:06 changeset-bot[bot]

/rebase

tim-smart avatar Jul 21 '25 21:07 tim-smart