length() returns the number of elements in an array.
Function type signature
(<-arr: [A]) => int
Array to evaluate. Default is the piped-forward array (
Return the length of an array
people = ["John", "Jane", "Abed"] people |> length()// Returns 3
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:
Customers with an annual or support contract can contact InfluxData Support.