Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104364 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 18103 invoked from network); 12 Feb 2019 19:12:30 -0000 Received: from unknown (HELO mail-qt1-f175.google.com) (209.85.160.175) by pb1.pair.com with SMTP; 12 Feb 2019 19:12:30 -0000 Received: by mail-qt1-f175.google.com with SMTP id 2so3485558qtb.5 for ; Tue, 12 Feb 2019 07:55:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kTsLTD7yUjx2Cs1RIi7oiJzR9azHcqyfKwDm1yzlX54=; b=Weh1xFF8fk+vUBP8akxybbrYFvEfyMZD1qTbPnsaYZgRIAJ2hGockr/eQuZT/KvmQJ 3dhUSF2n1/4R+/7PYtgfNRV0JmsMDD0ldVg2s8lVNxqcpjiHS/b/hnvCgaUaBOfSFkBs Ap5+RL35DNjSrvOKNdi27on6eIlIxRi/XUcnCQN2CZ3E3mneHcvuKS1wH43bc2PPojNs oQ636kwqI0lOmOFgv0xmWK2TdF0mxhKCHKY+dB6TWXn8iNH7sAENexjQLlaDgD37/+Oj 1L0cD+cHwu5P+mp3L+oxzjLsIaU23MOng03jtY4vOEUnRfL+JJrvN5XLtqEMZGvuXASU eA8A== X-Gm-Message-State: AHQUAubeNx+sc1ckLlwDEN2TpANoYd1sm8YUU4yAfA1lI69fMVN7Eqsd CP86cwBjY+Tv3CtnBrDvMDu3xSs9mVCfRGtIqNM9MNI9pO0svw== X-Google-Smtp-Source: AHgI3IYOVGv2xgj+xMrSV7R2sLRTEowr30UHIWVFV3cmnVIdousmDeIR28rxjOb8ooRWu3s1wJI43zXLeKpaXDH6e1Q= X-Received: by 2002:ac8:35f8:: with SMTP id l53mr3429413qtb.15.1549986925132; Tue, 12 Feb 2019 07:55:25 -0800 (PST) MIME-Version: 1.0 References: <5437a651-8263-49e9-b87e-d8d052d66c99@web.de> <2660878.MMxYkSA4mt@mcmic-probook> In-Reply-To: <2660878.MMxYkSA4mt@mcmic-probook> Date: Tue, 12 Feb 2019 09:55:14 -0600 Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000014512b0581b474ab" Subject: Re: [PHP-DEV] Variadic is_*() functions From: pollita@php.net (Sara Golemon) --00000000000014512b0581b474ab Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 12, 2019 at 4:30 AM C=C3=B4me Chilliet wrot= e: > My first thought was that this must already exists under another name, > but it seems that none of array_map, array_walk or array_reduce allows to do that easily. > (That is, in a more readable way than the boolean operator string, otherwise it=E2=80=99s useless) > Not in core, but I and I'm sure others, have built that pattern more than once. Ref: https://github.com/phplang/generator/blob/master/src/iterable.php -Sara --00000000000014512b0581b474ab--