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

Inference for splatting numbers (and more) #27434

Merged
merged 4 commits into from
Jun 26, 2018
Merged

Commits on Jun 26, 2018

  1. Improve abstract_iteration

    Exploit the fact that the (minimum) number of elements obtained from
    iteration can be derived from the types in certain cases and hence, a
    more exact type can be inferred for splatting them.
    martinholters committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    fd36a48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eafefa3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78b9e89 View commit details
    Browse the repository at this point in the history
  4. Make iterate(::Number) more digestible by abstract_iteration

    Letting the presence of a second argument alone decide whether iteration
    is done lets `abstract_iteration` determine that splatting a `Number`
    yields exactly one `Number`.
    martinholters committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    e086018 View commit details
    Browse the repository at this point in the history