3 ms·
F# [1..4] |> List.filter(fun x -> (x % 2) = 0) C# using System.Collections.Generic; public static class Foo { public static void Main(string[]
by fleitz 16y ago
F#
[1..4]
|> List.filter(fun x -> (x % 2) = 0)
C#
using System.Collections.Generic;
public static class Foo {
public static void Main(string[] args){
Enumerable.Range(1,4).Where(x => (x % 2) == 0);
}
}