RosettaCodeData/Task/Loops-For/Klong/loops-for.klong
2023-07-01 13:44:08 -04:00

10 lines
276 B
Text

:" x{p}:*y means repeat {p} x times starting at y "
5{x{.d(0c*);x}:*0;.p("");x+1}:*1
:" But you would not do it like this! "
:" You would reshape 0c* to the desired length "
:" in a function and then iterate that function "
:" over a vector of numbers: "
{.p(x:^0c*)}'1+!5