I would like to define a function with the parameter specified as "array of strings" or "array of integers", without looping through the individual array elements to check the type of each. Specifically, I would like the function to only allow passing of the two above-mentioned array types in order to run, in the same way one would be able to specify function(param: str)
to only accept strings, for example.
我将单独的职能定义为<条码>功能(第1段:名单/代码>或<条码>功能(第24段:名单/代码)。 但是,我无法说明如何同时执行。