Two main problems. First, if you want to declare the type of a parameter, you need to surround it with parentheses. Second, the lambda argument of Array.iter takes one of the array values (not an index) as a parameter. Here's the code I think you want.

1
2
3
4
#light
let rnd = new System.Random()
let randomizeArrays (a:byte[][]) = 
    Array.iter (fun arr -> rnd.NextBytes(arr)) a
By on 11/28/2008 6:23 PM ()

Yes that did the trick, thanks Brian.

By on 11/28/2008 7:23 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