PHPackages                             guglielmopepe/callbackmapiterator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. guglielmopepe/callbackmapiterator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

guglielmopepe/callbackmapiterator
=================================

This iterator applies the callback to the elements of the given iterator.

1.0.1(4y ago)05MITPHPPHP ^7.2.0 || ^8.0.0

Since Jan 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/GuglielmoPepe/CallbackMapIterator)[ Packagist](https://packagist.org/packages/guglielmopepe/callbackmapiterator)[ Docs](https://github.com/GuglielmoPepe/CallbackMapIterator)[ RSS](/packages/guglielmopepe-callbackmapiterator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

CallbackMapIterator
===================

[](#callbackmapiterator)

This iterator applies the callback to the elements of the given iterator.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Support](#support)
- [Contributing](#contributing)
- [Contacts](#contacts)
- [Roadmap](#roadmap)
- [Change log](#change-log)
- [License](#license)

Installation
------------

[](#installation)

Use Composer

```
$ composer require guglielmopepe/callbackmapiterator
```

Usage
-----

[](#usage)

The callback should accept up to three arguments: the current item, the current key and the iterator, respectively.

```

```

Any callable may be used; such as a string containing a function name, an array for a method, or an anonymous function.

```
