Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Three dots `...`

$
0
0

At various points in my exploration of Julia code, I find ... being used. For example, in help for symbol ?Symbol

Symbol(x...) -> Symbol

And, currently, I’m using the following code that includes ... to create a data frame from an array (using the first row as the column titles).

DataFrame_wTitles = DataFrame([[anArray[2:end,i]...] for i in 1:size(anArray,2)], Symbol.(anArray[1,:]))

However, it’s difficult to find documentation on ... or “three dots”, or “dots” . . . Broadcasting uses dot notation. It’s short and sweet notation, but I wonder how ... is officially referred to and does it have several meanings.

12 posts - 7 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles