I'd do

1
let f3 = Array.map2 Array.append f1 f2

.

By on 1/6/2011 1:00 PM ()

Hello,
Thank you very much, your code works!
Thanks and happy new year to you!

By on 1/6/2011 1:08 PM ()

This works, but it may not be the most elegant solution:

1
2
3
4
let f3 = [| yield Array.append f1.[0] f2.[0]; yield Array.append f1.[1] f2.[1] |];;

val f3 : float [] [] =
  [|[|1.0; 2.0; 3.0; 10.0; 20.0|]; [|4.0; 5.0; 6.0; 50.0; 60.0|]|]
By on 1/6/2011 12:55 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