Exercise: Binary Search
For the Binary Search exercise, there is nothing to prevent an implementation using Array.tryFindIndex. So this implementation is accepted.
module BinarySearch
let find input value = Array.tryFindIndex ((=) value) input
This is probably not the goal of the exercise and should probably be rejected. Or, at least, a mention in description of the exercise to avoid that specific helper (similar to the Accumulate exercise).
Good idea. The way to have it be mentioned in the description is to add a .docs/instructions.append.md file to the exercise's directory. Like https://github.com/exercism/fsharp/blob/main/exercises/practice/accumulate/.docs/instructions.append.md
Would you be willing to submit a PR?
Would you be willing to submit a PR?
Sure thing. Wanted to make sure I was at least strolling down the right avenue 😀
PR #1094 was merged. Closing.