Skip to content

IsIterator trait that is false for scalar numbers (IsCollection) #66

@jtravs

Description

@jtravs

I'd like to be able to dispatch on if a function is passed an iterator (such as an Array or Tuple or other collection) but not if it is an iterable scalar (such as a Float). See my post on discourse:

https://discourse.julialang.org/t/how-to-dispatch-on-an-iterable-e-g-accept-both-tuple-or-array/37629/3?u=jtravs

Is that possible? Something like an IsCollection?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions