Guidelines
Task
Write a method that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array (lists in some languages).
Rules
- This is code golf so the shortest answer in bytes wins!
- You will always get a valid array
- There will always be exactly one letter missing
- The length of the array will always be at least 2.
- The array will always contain letters in only one case (uppercase or lowercase)
- You must output in the same case (uppercase or lowercase) that the input is
- The array will always only go one letter a time (skipping the missing letter)
- The array length will be between 2 and 25
- The first or last element of the array will never be missing
Examples
['a','b','c','d','f'] -> 'e'
['O','Q','R','S'] -> 'P'
['x','z'] -> 'y'
['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z'] -> 'v'
['a','b','c','d','f','g']
, output['e']
, if that makes the code shorter? \$\endgroup\$