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.
加载中,请稍侯......
精彩评论