I noticed that this behaves this way, but I don't want to rely on him unless he is intentional. Here is the code in question:
let bestValuesUnder max =
allValues
>> List.partition (fun value -> value < max)
>> function
| ([], bad) -> [List.min bad]
| (good, _) -> good
allValues is a function that returns an int list.
source
share