Re:Functional Programming in 5 Minutes
by Paradigma11 on Monday May 20, 2013 @07:03AM
(#5736946)
In f# for example you can write:
let result = list1
|> List.filter (fun e -> ...)
|> List.map (fun e -> ...)
|> ....
no mutation, but you are piping the intermediate result to the next operation. In c# you could achieve a similar result by using the dot operator instead of the backpiping |> one.
[ Parent
| on HN ]
There are no comments on this comment yet.