If I have a sequence of values, how would I find the index of an element based on a predicate function? For example, if I had the following seq:
let values = @["pie", "cake", "ice cream"]
How would I find the index of the first element with four characters? I know of find, but it seems to only find index by equality, and does not allow passing a predicate. I could implement this myself but it feels as if it should be be in the standard library if find is.