d-pad(pad_character,direction,string)
Of course this would be an internal dependency of both left-pad and right-pad.
Reply on news.ycombinator.com