Returns a list completed to a desired length. This length is obtained by repetition of the last element. Also works for atoms at the input of <list>.