Skip to main content

New answers tagged

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!
sergiol's user avatar
  • 4,234

Top 50 recent answers are included