Skip to content

Instantly share code, notes, and snippets.

@louthy
Last active February 11, 2021 09:40
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 louthy/f4f7a50865bcbf56fd7292e07776ce54 to your computer and use it in GitHub Desktop.
Save louthy/f4f7a50865bcbf56fd7292e07776ce54 to your computer and use it in GitHub Desktop.
using System;
using LanguageExt;
using static LanguageExt.Prelude;
namespace RiderCandidates
{
class Program
{
static void Main(string[] args)
{
Seq<Aff<int>> ma = default;
var res = ma.Sequence(ToString);
}
static Aff<string> ToString(int x) =>
SuccessAff(x.ToString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment