Skip to content

PHP 8.5 pipe operator #1

@dakujem

Description

@dakujem

Since PHP 8.5 will ship with a pipe opearoator, it will be convenient to use with IteraFn instead of using the Pipeline or even Dash classes in some cases.

Mark this in the documentation.

$processed = $collection
    |> IteraFn::map($mapper)
    |> IteraFn::reindex($keyFunc)
    |> IteraFn::toArray();
$fifteenFoos = 'foo'
    |> IteraFn::repeat()
    |> IteraFn::limit(15)
    |> IteraFn::toArray();

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