9 lines
135 B
Text
9 lines
135 B
Text
|
|
repeat(s,n)={
|
||
|
|
if(n<4, return(concat(vector(n,i, s))));
|
||
|
|
if(n%2,
|
||
|
|
Str(repeat(Str(s,s),n\2),s)
|
||
|
|
,
|
||
|
|
repeat(Str(s,s),n\2)
|
||
|
|
);
|
||
|
|
}
|