Let's say I have a type:
let MyType =
some info
...
but, it is commonly used in a list: MyType list
so I can define:
let MyTypeList =
MyType list
is there a way to define a type augmentation on MyTypeList?
my practical case is that the type returns results of some work, it is handled in batches and I have some code that tell me if the whole batch is ok, if it is partially ok, or if everything went wrong. If I could add extensions to the list type, the syntax would be simpler.
let a : MyTypeList = ...
if a.IsAllOk() then ...
but I can't find how to make this with a list.