Skip to content

Operators without co- or contravariance #494

Description

@akarnokd

I'm looking at the operator definition and found a bunch of places where the "lambda" functions do not have wildcard bounds specified, e.g.,

reduce(Func2[T, T, T])
max(Comparator[T])

etc.
Is there a particular reason these are not:

reduce(Func2[? super T, ? super T, ? extends T])
max(Comparator[? super T])

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions