Skip to content

UnaryOperator Interface  #338

@BrianNeo00

Description

@BrianNeo00

image

In Streams, the .Iterate() methods take in a UnaryOperator instead of a Function, but from what I can tell, it seems as though when you're defining the UnaryOperator, its exactly the same as if it was a Function? Is it actually the same as though i was defining a Function?

I know that UnaryOperator is a sub-interface of Function but i feel like I'm missing something, since if it was exactly the same as a Function, there wouldn't be a need for the UnaryOperator.

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