public static void Main (string[] args) { var a = new CustomType(8); var b = a.Mutate((v) => v * 2); var c = a.Mutate( (v) => v * ( b.Mutate((n) => v).Value ) ); Console.WriteLine("a={0}, b={1}, c={2}", a, b, c); }
public static void Main(string[] args) { var a = new CustomType(8); var b = a.Mutate((v) => v * 2); var c = a.Mutate( (v) => v * ( b.Mutate((n) => v).Value ) ); Console.WriteLine("a={0}, b={1}, c={2}", a, b, c); }