Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
質問を示すために、次のコードを検討してください。
シーケンス=Seq.initInfinite(fun _-> "Element") Seq.iter(fun _-> printf "Element no:?")シーケンス
現在のシーケンス番号(ランクなど)を取得して印刷することは可能ですか?
iteri関数を使用します。
let sequence = Seq.initInfinite (fun _ -> "Element") sequence |> Seq.iteri (fun i _ -> printfn "Element no. %d" i)