Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Code challenge: Integer Comparison - Overkill - Composite Function
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Func<Tuple<int,int>, Func<Tuple<int,int>, bool>, string> f; Tuple<int,int> integers; integers = Tuple.Create(4,6); f = (z, g) => { return z.Item2 == z.Item1 ? "-1" : g(z).ToString(); }; Console.WriteLine(f(integers, z => z.Item2 > z.Item1)); } } }
run
|
edit
|
history
|
help
0
gggsggsgg
Número primers
teste
Brainf*ck interpreter
Two lines of Random number
MultiThreading and CancellationToken
1
code1
Trabalho
Simplified login system