I have a C# class MyClass.
And I would need to implement f# method returning all possible permutations of items in a IList
Problem is that MyClass contains a method bool CheckOrder(IList predecessors) returning true if the instance of MyClass can be placed in the permutation after instances of MyClass in the parameter. Otherwisem this method returns false.
Please, could anyone advise me how to implement a proper F# function.
Update: Please, could you outline F# code of the method test considering my C# class having method: bool CheckOrder(IList predecessors)