let sub (m:double[],n:double[]) : double[]=
[| for i = 0 to Array.length m -1 do m.[i]-n.[i] |]
Error 1 This value is not a function and cannot be applied E: \ MyDocuments \ Visual Studio 2010 \ Projects \ curve intersection \ newton \ Module1.fs 27 21 newton
But it normal:
let a = [| "a"; "b"; "c"; "d"; "e"; "f" |]
for i = 0 to Array.length a - 1 do
System.Console.WriteLine(a.[i])
source
share