开发者

Can I do for with index in F#

开发者 https://www.devze.com 2023-02-23 05:57 出处:网络
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-part

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

精彩评论

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