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
.
精彩评论