You can Clear the hand and then Append the elements:

1
2
3
4
5
6
                getRandomHand (fun vmList -> 
                    let imageElements = (List.fold foldFunc [] vmList)
                    hand.Clear()
                    imageElements |> List.iter (fun e -> hand.Append(e))
                    // or equivalently: for e in imageElements do hand.Append(e)
                 ))
By on 9/8/2014 2:17 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