Consider the following code to demonstrate the question:
let sequence = Seq.initInfinite (fun _ -> "Element")
Seq.iter (fun _ -> printf "Element no:?") Sequence
Is there any way to get the current serial number (for example, its rank) for printing?
Cay
source
share