Meaning of "..." in plot(f, extrema(xs)...)

what does it mean 3 dots (…) after vector, example extrema([1, 2, 3])…

That’s the splat operator.

plot(f, (0, 10)...) == plot(f, 0, 10)

I think of it as “peeling” a collection.

1 Like