Skip to content

left

left<L>(x): Left<L>

Creates a Right from the given input.

Example

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

Type Parameters

L

The Left type.

Parameters

x

L

Returns

Left<L>