Given the following expression in J, how do I execute it n
times?
6?99
The only solution I could come up with was to turn it into a verb, which works nicely, but I suspect there's a better way:
(3 : '6?99')"0 i.100
Now, before anyone gets confused, this question is not about the specific expression 6?99
. It is a general question about the J programming language. Your answer should be general enough to apply to any J expression, not just 6?99
.
v =: 6&?
and runv (n $ 99)
. See evaluating expressions – Carbonization(6?99"_)^:(>:i.4) ''
– Grog