Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114572 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7843 invoked from network); 25 May 2021 09:54:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 May 2021 09:54:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0FF351804B5 for ; Tue, 25 May 2021 03:05:15 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 25 May 2021 03:05:14 -0700 (PDT) Received: by mail-wm1-f47.google.com with SMTP id u133so16388396wmg.1 for ; Tue, 25 May 2021 03:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=99kbA2STDZ8EFiCW+49FD9oFpLBeCLqvR6ErvXfo1eQ=; b=j6p+L1Rn48uqtzi9Wv9W+KOi8oF1rkml8L1q5C+DGDQ5Jt/PsuxLjZPy5iLHX3FXdU DP7CiUUBIpUvhkhKMjFFd/QGXJvLgPBNG4VgpcKNo59+R3tOjK5pMsmYZcgm4ouNfRFx PxAXqLsIbJH4y9aFs24Dcd/OdR9jd8oLaMhiHif7/7b569Eu6F5A7ggz8qGqiwwvjPDX paNARmHKN3nzv1ihK2ivloF1Q7lGGxIQZuiqBqT3gvGSMk2SFmBZ6DinC8Nem/9Lrr92 f8AX5xyhbOUj4cqmSZaINBWThb1eP4/LSQvJBMBzG2oRmQuULvE33bGAL7cIF/s+CF88 gpxA== 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=99kbA2STDZ8EFiCW+49FD9oFpLBeCLqvR6ErvXfo1eQ=; b=hPIRMzlLoht4f6NtE4oVva6d8ULLs6PI/EX1Hozyqo0dQuFRt0zvPsOlCVXRmkHZBG x+oJ05Q7IJbMVZlZjnsbEut5D6zZuQoLh/dhPxBHv6jT5swdYUZ8uYoso/Nj2lXeyT9q k7jIw92YHIUtNwdH5xGR6H7o8W5+WtCHL/991Rt2ynFzaAiQwqxV52A2a6dFoNHRwNVg 1tBCVlqwqUoxBKdE48NPcBbteb/zgA1m6Bowg9LLp7leAgKh1SW0myJORSy0oYEsAiWJ v6Crzct232Xgo2/mh+UGjXdolz2seji9ry1DxjKDN6HG8Ku3DAbFmZJzCOzIpVth4jn2 4vfg== X-Gm-Message-State: AOAM530aAtHsyYjT7URdUl91JvGlpAk8bKnp0PjoHZIxQIkPgSHCxHmE r8Lxv04+/4R0u/l3BWXIv4AY0//yOQaeQB+57Sw= X-Google-Smtp-Source: ABdhPJxEU4gO7uK+vwqn7mUXEeDt9fu9MvpbLh9TytnAX9Rxc/lyC/NkPQdBSVWM2Au0OyHhcnsHsOuqVTpMBNuiq50= X-Received: by 2002:a7b:ce0f:: with SMTP id m15mr3018562wmc.55.1621937113165; Tue, 25 May 2021 03:05:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 25 May 2021 13:05:00 +0300 Message-ID: To: Karoly Negyesi Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] A little syntactic sugar on array_* function calls? From: someniatko@gmail.com (someniatko) > I was wondering whether $array->map($somefunction) would be possible. There is Pipe Operator RFC existing already, which most probably would suit your needs. The code you want will look like this: https://wiki.php.net/rfc/pipe-operator-v2 ```php $array |> array_map($somefunction). ``` Best wishes, someniatko