与F#List.nth的参数顺序混淆 [英] Confused with F# List.nth's argument order

查看:63
本文介绍了与F#List.nth的参数顺序混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

List.nth 'T列表-> int->'T ,而不是标准的 int->'T列表->'T ,例如 Seq.nth .

List.nth is 'T list -> int -> 'T, rather than the standard int -> 'T list -> 'T like Seq.nth.

这使管道有些尴尬.

幕后有什么东西吗?

我不知道为什么.

推荐答案

可能适用于

Might be for ocaml compatibility (or just laziness), but without deeper reasons concerning the implementation itself.

这篇关于与F#List.nth的参数顺序混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆