PadRight
Pad a list on the right to length n, or truncate it from the right.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
PadRight✓PadRight(list)a ragged array (a list of lists) padded with 0s to a full matrix.PadRight(list, n, x?)padded on the right with (default 0) to length ; a shorter drops elements from the right instead.Typed signatures
| Type | Package | Applies |
|---|---|---|
(list<any>, integer?, any?) -> collection | combinatorics | always |
Examples
Basic #
Scope #
Possible issues #
About
| Examples | 10 |
|---|---|
| Checked against | Wolfram Language 10 agree |
| Crosswalk | Wolfram Language |