Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Array{Any} when collecting chained generators #90

@CarloLucibello

Description

@CarloLucibello

Collecting a generator works as expected

julia> collect(i for i=1:10)
10-element Array{Int64,1}:
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10

But if you chain it

julia> collect(chain(i for i=1:10))
10-element Array{Any,1}:
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10

What puzzles me is that eltype(i for i=1:10) == Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions