Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default values for Vector{Strand} #10

Open
phaverty opened this issue Dec 2, 2017 · 1 comment
Open

default values for Vector{Strand} #10

phaverty opened this issue Dec 2, 2017 · 1 comment

Comments

@phaverty
Copy link

phaverty commented Dec 2, 2017

Could similar on an array of Strand object be initialized as an array of STRAND_NA?

@bicycle1885
Copy link
Member

The docstring of similar states it creates an "uninitialized" array. So, I think there is no reason to define a specialized similar method that initializes an array. If you need an initialized version, you can call fill(STRAND_NA, 10).

In what situation do you need an initialized vector of strands when you call similar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants