To create a matrix of N identical numbers, I can use J(N, 1, number).
What is the shortest (syntax) and fastest way to create a list of N identical strings?
Repeat({"A"}, 1000)
: )Scripting Index -> Online Help -> Scripting Guide:https://www.jmp.com/support/help/en/18.0/#page/jmp/repeat-function.shtml#ww270242
I fear a LLM will have its difficulties with such cool hidden features ...
I'm not really sure if there is anything hidden about Repeat()? Of course, you have to know about it, but you will come across it fairly quickly in scripting index. But you might need a bit of luck as the function group which it belongs to is Character and not Character, Matrix and List which it should be but it isn't the only one like this.
You can also go with a bit more "normal" route where replace all values in a list
Names Default To Here(1); l = As List(J(1000, 1, .)); l[1::N Items(l)] = "A"; show(l);
It's easy to find Repeat, but it's more difficult to find and understand the correct syntax to generate the list.