Skip to content

Add functional helpers #11911

@rullzer

Description

@rullzer

In some places more functional programming would make sense. See https://medium.com/ifixit-engineering/functional-programming-with-php-generators-837a6c91b0e3 for example.

The library https://github.com/nikic/iter already does a nice job at wrapping most of it.

Of course we should only use it when it makes sense. But we seem to already use use array_map, array_filter etc in a lot of places. So it might make sense to try to move some things to generators.

CC: @ChristophWurst @MorrisJobke @juliushaertl @icewind1991 for some brainstorming

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions