Constructs a Result holding an Ok value.
This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.
Constructs a Result holding an Ok value.
const Result = require('folktale/result');
Result.of(1);
// ==> Result.Ok(1)
of(value) {
return Ok(value);
}