I wonder in helm what is the difference between range list and range tuple.
I see in the official doc the use of tuple and sometime list, but i can't figure out the difference between the two. Can someone clarify ?
Helm relies on a support library called Sprig to provide many of its template functions. Neither the Helm nor the Sprig documentation explicitly mentions a tuple
function, but in the Sprig source, tuple
and list
are the same function; calling list 1 2 3
and tuple 1 2 3
run the same code and produce identical results.
Neither the Go language nor the Go text/template
system has "tuple" as a type (unlike, say, Python or Haskell). I see the references to tuple
in the Helm documentation, but style-wise, I'd probably always use list
as a documented function corresponding to a standard type.