logo

How to Create an Array Filled with a Specific Value in Julia 📂Julia

How to Create an Array Filled with a Specific Value in Julia

Code

fill() function can be used. It serves a similar purpose to the rep() function in R.