Skip to content

Conversation

@mkitti
Copy link
Owner

@mkitti mkitti commented Jan 27, 2023

Add generator initializers

See Discourse discussion:
https://discourse.julialang.org/t/generator-as-an-array-initializer/93379/15

@mkitti
Copy link
Owner Author

mkitti commented Jan 27, 2023

Some issues:

  1. collect infers the array type from the first element. If someone uses Array{T} does that T take precedence?
  2. The generator may have a multidimensional size based on the Iterator size. Should we allow the user to still add dim arguments (or a dims argument) to the Array constructor in that case?

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

Successfully merging this pull request may close these issues.

2 participants