I constantly call static methods calling the static class, and this seems unnatural to me:
let l = Seq.length myseq
It would be more natural to me to use
let l = myseq.length
you can imagine it is the same for many base class
Is there a way to have all those methods available automatically as instance method, without writing extension methods for each of them ?
In general, there is no way to treat values from modules as if they are instance members. However, in the case of the
Seqmodule, you can find extension member analogs of many of theSeqfunctions in theSystem.Linqnamespace, so you can do: