trivial-left-pad

API Reference

trivial-left-pad

Ports the functionality of the very popular left-pad from npm.

TRIVIAL-LEFT-PAD

  • Function LEFT-PAD (string length &optional (padding #\ ))
    Pads the left of string to be length long. It inserts padding in front. If padding is nil, a space is inserted. If string is not a string, it is converted to a string. The maximum allowed length is 10,000,000.