Skip to content

Instantly share code, notes, and snippets.

@bigjonroberts
Last active December 17, 2022 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigjonroberts/34b91c65f11c4ac5c414ce112a40f7a8 to your computer and use it in GitHub Desktop.
Save bigjonroberts/34b91c65f11c4ac5c414ce112a40f7a8 to your computer and use it in GitHub Desktop.
F# example of monadic functions with C# examples for Task<T>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bigjonroberts
Copy link
Author

TODO:

  • remove superfluous items imported from YoLo, just strip it down to any used.
  • make F# and C# sections "the same"
  • Either convert F# to use Task<T> and task {} or add some information about Async being cold/lazy vs Task<T> being hot start.
  • cleanup/remove other non-monad/bind related items from end (move to other notebook?)
  • rename?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment