8 ms·
The pipe operator in F# |> is used in this way. When combined with currying it is especially effective: let double_then_sum a_list = a_list |> Li
by dagheti 16y ago
The pipe operator in F# |> is used in this way. When combined with currying it is especially effective:
let double_then_sum a_list =
a_list
|> List.map ((*) 2)
|> List.fold (+) 0