Skip to content

Instantly share code, notes, and snippets.

@CoditCompany
Created August 24, 2017 08:05
Show Gist options
  • Select an option

  • Save CoditCompany/cfda37c8651a45f2abbf0afa008f690c to your computer and use it in GitHub Desktop.

Select an option

Save CoditCompany/cfda37c8651a45f2abbf0afa008f690c to your computer and use it in GitHub Desktop.
var maybeThis = Maybe<This>.Just(new This());
maybeThis.Bind(@this => @this.GetMaybeThat())
.Bind(that => that.GetMaybeAnother())
.Bind(another => Maybe<AnotherThing>.Just(another));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment