Buckets:
| /** | |
| * This file is part of the Nette Framework (https://nette.org) | |
| * Copyright (c) 2004 David Grudl (https://davidgrudl.com) | |
| */ | |
| declare(strict_types=1); | |
| namespace Nette\Iterators; | |
| /** | |
| * @deprecated use Nette\Utils\Iterables::map() | |
| */ | |
| class Mapper extends \IteratorIterator | |
| { | |
| /** @var callable */ | |
| private $callback; | |
| public function __construct(\Traversable $iterator, callable $callback) | |
| { | |
| parent::__construct($iterator); | |
| $this->callback = $callback; | |
| } | |
| public function current(): mixed | |
| { | |
| return ($this->callback)(parent::current(), parent::key()); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 585 Bytes
- Xet hash:
- c7d8734ad7e1cedbe9fe5779ecd4c68afc21d4039e39bd1eab333b12fd3cc910
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.