variants

The variants in the Result structure.

This feature is experimental!

This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.

Signature

Array Variant

Documentation

The variants in the Result structure.

Properties

Variants

0: Error(value)

Constructs a Result whose value represents a failure.

Experimental
1: Ok(value)

Constructs a Result whose value represents a success.

Experimental

(Uncategorised)

concat()
Inherited
constructor()
Inherited
copyWithin()
Inherited
entries()
Inherited
every()
Inherited
fill()
Inherited
filter()
Inherited
find()
Inherited
findIndex()
Inherited
forEach()
Inherited
includes()
Inherited
indexOf()
Inherited
join()
Inherited
keys()
Inherited
lastIndexOf()
Inherited

A Number.

Experimental
map()
Inherited
pop()
Inherited
push()
Inherited
reduce()
Inherited
reduceRight()
Inherited
reverse()
Inherited
shift()
Inherited
slice()
Inherited
some()
Inherited
sort()
Inherited
splice()
Inherited
toString()
Inherited
unshift()
Inherited

Source Code

Defined in source/adt/union/union.js at line 161, column 35
values(variants)
Stability
experimental
Licence
MIT
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)