0

Find the nth occurrence of a character
code-golf string
Challenge
Given a string s, a character c, and a number n, return the position of the nth occurrence of c in s.
If c does not have an nth occurrence in s, you can return a number outside the range of the string, or another type of object ent...