The trivial-left-pad Reference Manual

This is the trivial-left-pad Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:56:30 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 trivial-left-pad

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

Author

Michael Babich

License

MIT

Dependency

alexandria (system).

Source

trivial-left-pad.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 trivial-left-pad/trivial-left-pad.asd

Source

trivial-left-pad.asd.

Parent Component

trivial-left-pad (system).

ASDF Systems

trivial-left-pad.


3.1.2 trivial-left-pad/package.lisp

Source

trivial-left-pad.asd.

Parent Component

trivial-left-pad (system).

Packages

trivial-left-pad.


3.1.3 trivial-left-pad/trivial-left-pad.lisp

Dependency

package.lisp (file).

Source

trivial-left-pad.asd.

Parent Component

trivial-left-pad (system).

Public Interface

left-pad (function).

Internals

4 Packages

Packages are listed by definition order.


4.1 trivial-left-pad

Source

package.lisp.

Use List

common-lisp.

Public Interface

left-pad (function).

Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Ordinary functions

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.

Package

trivial-left-pad.

Source

trivial-left-pad.lisp.


5.2 Internals


5.2.1 Ordinary functions

Function: %advanced-left-pad (string length padding)
Package

trivial-left-pad.

Source

trivial-left-pad.lisp.

Function: %simple-left-pad (string length padding)
Package

trivial-left-pad.

Source

trivial-left-pad.lisp.


5.2.2 Types

Type: reasonable-string-length ()
Package

trivial-left-pad.

Source

trivial-left-pad.lisp.


Appendix A Indexes


A.1 Concepts


A.3 Variables