I am trying to override the List.distinct
function:
let inline distinct list = let folder curr = function | [] -> [curr] | l -> if List.contains curr l then l else curr :: l List.foldBack folder list [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I got a warning that
List.foldBack fx []
can be reorganized to x
However, this does not matter much to me, since it leads me to return to the original list without executing separate logic.
Is this an FSharpLint error?
source share