Your task is to write a program/function to scale up an image (list of strings) by a factor of n
.
Specs
- You will receive two inputs: an image, and a positive integer.
- The image will only contain ASCII printable characters (U+0020-U+007F).
Scoring
This is code-golf. Shortest solution in bytes wins.
Testcases
Testcase 1
abc
xyz
2
aabbcc
aabbcc
xxyyzz
xxyyzz
Testcase 2
|_|
3
|||___|||
|||___|||
|||___|||