F#的Sequence yield用法代码
代码语言:f#
代码描述:F#的Sequence yield用法代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
(* Sequences *) let seq1 = seq { 1 .. 10 } (* ascending order and increment*) printfn "The Sequence: %A" seq1 let seq2 = seq { 1 .. 5 .. 50 } (* descending order and decrement*) printfn "The Seq.........完整代码请登录后点击上方下载按钮下载查看
网友评论0