RosettaCodeData/Task/Loops-For/Klong/loops-for.klong

11 lines
276 B
Plaintext

:" 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