© 2026 Hedgehog Software, LLC
function eitherFromRandom(random: number): Either.Either<'fail', number> { return random > 0.5 ? Either.right(random) : Either.left('fail') }
return random > 0.5 ? Either.right(random) : Either.left('fail') ~~~~~~