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

Array of tuples into a pure array of integers

$
0
0

New to Julia from Python so I am not used to all of these types, sorry if this is super simple but I have had no luck in my google searches.

Can someone help me turn an array of tuples into a pure array of integers.

For example:

cartesian_array = [(1,2) (2,2) (3,2)]
new_array = [1 2; 2 2; 3 2]

4 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images