fork download
  1. open System
  2.  
  3. let xs = [1; 2; 3; 4; 5]
  4.  
  5. let results = xs |> List.filter(fun x -> x % 2 = 0) |> List.map(fun x -> 10 * x)
  6.  
  7. printfn "%A" results
Success #stdin #stdout 0.1s 23180KB
stdin
Standard input is empty
stdout
[20; 40]