Skip to content

right

right<R>(x): Right<R>

Creates a Right from the given input.

Example

right("foobar")
// => {right: "foobar"}

Type Parameters

R

The Right type.

Parameters

x

R

Returns

Right<R>