open System let xs = [1; 2; 3; 4; 5] let results = xs |> List.filter(fun x -> x % 2 = 0) |> List.map(fun x -> 10 * x) printfn "%A" results
Standard input is empty
[20; 40]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!