Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Effect-TS/effect
/ flip
Function
flip
packages/effect/src/Either.ts:776–776 ·
view source on GitHub ↗
(self: Either<A, E>)
Source
from the content-addressed store, hash-verified
774
* @category mapping
775
*/
776
export
const
flip = <A, E>(self: Either<A, E>): Either<E, A> => isLeft(self) ? right(self.left) : left(self.right)
777
778
const
adapter = Gen.adapter<EitherTypeLambda>()
779
Callers
nothing calls this directly
Calls
3
isLeft
Function · 0.50
right
Function · 0.50
left
Function · 0.50
Tested by
no test coverage detected