There are function composition operators (<<) and (>>)

1
2
3
4
5
6
7
8
9
10
11
12
 

let f0 x = x + 1

let f1 x = x * 2

let s = [1;2;3]

s |> Seq.map f0 |> Seq.map f1 |> Seq.iter (printfn "%d")

s |> Seq.map (f0 >> f1) |> Seq.iter (printfn "%d")
By on 5/24/2009 12:02 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper