<commit_before><?php
declare(strict_types=1);

use Baethon\Phln\Phln as P;

P::macro('map', function (callable $fn = null, array $list = []) {
    return array_map($fn, $list);
});<commit_msg>Small refactor of map()<commit_after><?php
declare(strict_types=1);

use Baethon\Phln\Phln as P;
use function Baethon\Phln\load_macro;

load_macro('fn', 'nAry');

P::macro('map', P::nAry(2, '\\array_map'));
{'fraction_non_alphanumeric': 0.1984924623115578, 'fraction_numerical': 0.007537688442211055, 'mean_word_length': 6.388888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4202167', 'n_tokens_mistral': 165, 'n_tokens_neox': 160, 'n_words': 33}