In this task you will be given a list of integers. You should only return an integer if the first digit is the same as the last digit in the number. If an integer has a single digit, then it should be returned. If there are no integers that start and end with the same digit then an empty list ("[]") should be returned.
[999, -335, -530, 618, -427, 246, -104, 984, -316, 278, -981, 862, 524, -120, -977, -508, -766, -349, 509]