Matthew Crews
Matthew Crews

Reputation: 4305

Prevent Julia from writing to console when instantiating large arrays

Is there a command that will prevent Julia from printing out all of the values in an array when I create it? This can be annoying when creating large arrays in the REPL. For example when I run this:

julia> bigArray = Array[ [1:1000000], [1:1000000] ]

I would rather it not print all of the values to the console. Any help is appreciated!

Upvotes: 1

Views: 755

Answers (1)

Ben
Ben

Reputation: 7124

Add a semicolon

julia> bigArray = Array[ [1:1000000], [1:1000000] ];

Upvotes: 1

Related Questions