New answers tagged recursion
0
votes
Nesting list with a value repeated `n` amount of times
Tcl, 86 bytes
proc H n\ x {list [join [lmap i [lseq $n] {set x}] " \{"][string repe \} [expr $n-1]]}
Attempt This Online!
Top 50 recent answers are included
Related Tags
recursion × 41code-golf × 38
math × 10
arithmetic × 7
sequence × 5
number × 4
tips × 3
graphical-output × 3
fractal × 3
string × 2
array × 2
decision-problem × 2
base-conversion × 2
interpreter × 2
counting × 2
balanced-string × 2
ascii-art × 1
number-theory × 1
combinatorics × 1
random × 1
game × 1
fastest-code × 1
python × 1
optimization × 1
javascript × 1