Practice question from Function Composition & Pipelines
Fill in the collection pipeline:
let numbers = [1; 2; 3; 4; 5]
let result = numbers |> List.____ (fun x -> x * 2)Answer
["map"]
Explanation
List.map applies a function to each element in a list, transforming [1; 2; 3; 4; 5] to [2; 4; 6; 8; 10].