我如何重载.[] F#数组基于任意索引数组切片数组?
例如:
let x = [|1..10|]; let indx = [|4;1|];
虽然
[| for i in indx ->x.[i]|]
会工作,能x.[indx]直接使用会更好.
x.[indx]
f#
f# ×1