Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const maybeFooBarBaz = forComp(
- () => this.getAsOption('foo'),
- (foo) => this.getAsOption('bar'),
- (foo, bar) => this.getAsOption('baz')
- ).yield((foo, bar, baz) => `${foo} ${bar} ${baz}`);
- console.log(maybeFooBarBax.valueOrElse('On of the options was none.'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement