You can always write an F # extension method to get closer to the syntax
let a = [| 1..10 |] let idx = [|4;1|] type 'T ``[]`` with //' member this.Slice(indices:int array) = [| for i in indices -> this.[i] |] printfn "%A" (a.Slice idx)
but since there is already a pointer in the arrays, it does not appear where you can overload / change it.
Brian Mar 01 '10 at 16:05 2010-03-01 16:05
source share