fork download
  1. module Seq =
  2. let zipWithIndex coll = Seq.zip coll (
  3. seq {
  4. let i = ref 0
  5. while true do
  6. let x = !i
  7. i := !i + 1
  8. yield x
  9. }
  10.  
  11. printfn "%A" ([1; 8; 9] |> Seq.zipWithIndex)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/ws85g4/prog.fs(3,5): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (2:27). Try indenting this token further or using standard formatting conventions.

/home/ws85g4/prog.fs(3,5): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (2:27). Try indenting this token further or using standard formatting conventions.

/home/ws85g4/prog.fs(3,9): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (2:27). Try indenting this token further or using standard formatting conventions.

/home/ws85g4/prog.fs(11,14): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (2:27). Try indenting this token further or using standard formatting conventions.

/home/ws85g4/prog.fs(2,40): error FS0583: Unmatched '('

/home/ws85g4/prog.fs(11,45): error FS0528: Unexpected end of input

/home/ws85g4/prog.fs(2,3): error FS0577: No body found for this 'let' or 'do'. The body must be indented to the same column as this line.
stdout
Standard output is empty