let indices = Seq.unfold (fun x -> Some(x, x + 1)) 0 let zipWithIndex coll = Seq.zip coll indices let x = [12; 8; 9; 90, 3; 24] |> zipWithIndex printfn "%A" (Seq.minBy fst x)
Standard input is empty
/home/CLFh0Y/prog.fs(4,20): error FS0001: This expression was expected to have type
int
but here has type
'a * 'b
Standard output is empty