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