开发者

Can I do for with index in F#

in Nemerle I can do it like this : foreach (v in 开发者_如何学Pythonlst with index)

is there something alike on F# ?


Yes, with higher-order functions there is Seq.iteri and Seq.mapi, with counter-parts in some of the other collection modules like Array and List.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜