resize
resize(x, size)
resize(x, size, defaultValue)
Resize a matrix.
Try it yourself:
$1 | resize([1,2,3,4,5], [3])
| |
$2 | resize([1,2,3], [5])
| |
$3 | resize([1,2,3], [5], -1)
| |
$4 | resize(2, [2, 3])
| |
$5 | resize("hello", [8], "!")
|