2

How do you declare an array with a custom start index in Julia?

In other words, when I declare an array under special circumstances, how can I make the first element's index 0 or 2 instead of 1.

1 Answer 1

1

Short answer: there is no built-in way to do this in Julia.

Long answer: you can make a custom array type that would support this fairly easily, and this SO question has good solutions for this problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.