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

Tuple with unknown n elements

$
0
0

@Locust wrote:

I need to define a tuple of n elements ie (1,2,3,…,n)
where n is the argument of function f as below

function f(n)

None of the following work

x=(1,2,3,…,n)
x=(i, i=1:n)

end

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles