1
2
3
4
5
6
7
8
 

let a = [1;2;3]

let b = [4;5;6]

printfn "%A" (List.map2 (+) a b)
By on 4/1/2010 12:08 PM ()

[1;2;3] |> List.zip [4;5;6] |> List.map (fun (x,y) -> x+y)

By on 4/1/2010 12:08 PM ()
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