Base case not getting picked up in my F# function
This function is supposed to just return the index of a list. That part works. However when a element is not in a list it must return -1. For some reason it does not return -1. let rec search f list = match list with | head::tail -> if f head then 0 else 1… Read More Base case not getting picked up in my F# function