array.toString() function
array.toString()
是实验性的,并且随时可能更改。
array.toString()
将数组中的所有值转换为字符串。
Supported array types
[bool]
[duration]
[float]
[int]
[time]
[uint]
Function type signature
(<-arr: [A]) => [string]
有关更多信息,请参阅函数类型签名。
Parameters
arr
要转换的值的数组。 默认值是管道转发数组 (<-
)。
Examples
Convert an array of floats to strings
import "experimental/array"
arr = [12.0, 1.2300, NaN, 24.2]
array.toString(arr: arr)// Returns ["12.0", "1.2300", "NaN", "24.2"]
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources
拥有年度或支持合同的客户可以联系 InfluxData 支持。