Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120484 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 25854 invoked from network); 31 May 2023 07:30:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 May 2023 07:30:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E4FAD180384 for ; Wed, 31 May 2023 00:30:18 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15576 212.103.64.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 31 May 2023 00:30:18 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 0D19A1098 for ; Wed, 31 May 2023 09:30:12 +0200 (CEST) Authentication-Results: ext-mx-out002.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :mime-version:date:date:message-id:received:received:received; s=dkim20160331; t=1685518209; x=1687332610; bh=1He4iOnBz+rKoOo3 nkmjPtEPCDpRZ4xiqKljXTZfDxI=; b=Z7djILz/wHSdNl07b//qLf4QFgKODyit GqUl8jD6kwX1rQNrw24jGhtsM6ycDZt2c7KykoquJHjP9bsw4AqhI+3n+vwDlCoU wpfFGac9A07JW5sQos0B2TkMnXdkv19cS43b4sRO2WMRX67KL/D0PULLmrM8b2px kQZVN9eg5lmssYuFJc3JqmVIX/kH2J0Jngwcx9kT0VgBsG7BmXsVXEr658bN9wnq 6EqGWz73dcoU9wfAS3mPTP8ylnUySmck0y5PPPnLFZYAGn84N345EOy+C+2z1xKB Wycn1v2ID5+w1rj7XitobKjpTTCTv4pfGk18MnCniUuw1QNTGJYtkunNTBKWNHjq mmgY2icmPR/JV5z/2xpTKpQ0XOWLjKgwOgdNop8mPazCPNSz4E49X4T2eFp25Sds Qlo6jmt8lLwB2izrtTwDgbCLFhaea8U1+M2N+ZMD+LVmejfmQw7wsirt5USDrbZG 5i1lTH7RFS1QGsvu8CdW5obnqGhjLXVdMKj6eZoi8a96zwZWW57Mtott0HtXKkaI izuCz54qKSfGPc8WUtu4rIxVhF1NOpggFpUVTL7CJyW802lSkh2I6GHmVYjOIdc1 VIQK37badZVWXbIBQ9/SYA3sstUnvxwOoobAi6uO4cSxHYA9cJvtvjYps61hsm2K X+J4MhabMHE= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A4mVoXJMC277 for ; Wed, 31 May 2023 09:30:09 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by mx.kolabnow.com (Postfix) with ESMTPS id C1852C08 for ; Wed, 31 May 2023 09:30:04 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx003.mykolab.com (Postfix) with ESMTPS id AF4792440 for ; Wed, 31 May 2023 09:30:03 +0200 (CEST) Message-ID: <12bede25-36ad-037d-8802-6348da7a2e3d@alec.pl> Date: Wed, 31 May 2023 09:30:01 +0200 MIME-Version: 1.0 To: internals@lists.php.net References: <289E585B-EF8B-4B17-89BE-BE8295FD9FE1@gmail.com> Content-Language: en-US In-Reply-To: <289E585B-EF8B-4B17-89BE-BE8295FD9FE1@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Add new function `array_group` From: alec@alec.pl (Aleksander Machniak) On 30.05.2023 13:34, Boro Sitnikovski wrote: > I propose introducing a function to PHP core named `array_group`. This > function takes an array and a function and returns an array that > contains arrays - groups of consecutive elements. This is very similar > to Haskell's `groupBy` function > . Sorry, I'm sick right now and have no clue, but how does it relate to https://wiki.php.net/rfc/array_column_results_grouping -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com