I hereby claim:
- I am louthy on github.
- I am louthy (https://keybase.io/louthy) on keybase.
- I have a public key ASCeNsBy0zOFk4-hTP5CETDmMysT8kN4ZVD76Fu2hiO-iAo
To claim this, I am signing this object:
public static class TupleExtensions | |
{ | |
public static R Apply<T1, T2, R>(this Tuple<T1, T2> self, Func<T1, T2, R> func) | |
{ | |
return func(self.Item1, self.Item2); | |
} | |
public static R Apply<T1, T2, T3, R>(this Tuple<T1, T2, T3> self, Func<T1, T2, T3, R> func) | |
{ | |
return func(self.Item1, self.Item2, self.Item3); |
namespace Language | |
{ | |
public static class Helpers | |
{ | |
public static Tuple<T1, T2> tuple<T1, T2>(T1 item1, T2 item2) | |
{ | |
return Tuple.Create(item1, item2); | |
} | |
public static Tuple<T1, T2, T3> tuple<T1, T2, T3>(T1 item1, T2 item2, T3 item3) |
using System; | |
using System.Linq; | |
using System.Threading; | |
namespace App | |
{ | |
public delegate ListItem<T> List<T>(); | |
public static class Program | |
{ |
using LanguageExt; | |
using static LanguageExt.Prelude; | |
/////////////////////////////////////////////////////////////////////////////////// | |
// Option<T> doesn't allow null use at all, and it's a struct, so any references | |
// also can't be null. | |
string noValue = null; | |
Option<string> str1 = noValue; // Implicitly coerced to None | |
Option<string> str2 = Optional(noValue); // Explicitly coerced to None |
using System; | |
namespace TestTypeClasses | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var ma = Option.Some(2); | |
var mb = Option.Some(4); |
// | |
// See https://github.com/louthy/language-ext | |
// | |
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using LanguageExt; | |
using static LanguageExt.Prelude; |
I hereby claim:
To claim this, I am signing this object:
namespace Echo | |
open LanguageExt | |
open LanguageExt.UnitsOfMeasure | |
open System | |
open Microsoft.FSharp.Data.UnitSystems.SI.UnitNames | |
module ProcessFs = | |
type SessionId = Echo.SessionId |
namespace Echo | |
open System | |
open ProcessFs | |
module DispatchFs = | |
/// Registers a dispatcher for a role | |
/// Dispatchers take in a 'leaf' ProcessId (i.e. /user/my-process) and return an enumerable | |
/// of real ProcessIds that the Process system will use to deliver all of the standard functions |
namespace Echo | |
open System | |
open ProcessFs | |
module RoleFs = | |
let Broadcast = Echo.Role.Broadcast | |
let LeastBusy = Echo.Role.LeastBusy | |
let RoundRobin = Echo.Role.RoundRobin |