Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64967 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2891 invoked from network); 15 Jan 2013 06:12:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2013 06:12:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=hermanradtke@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hermanradtke@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.181 as permitted sender) X-PHP-List-Original-Sender: hermanradtke@gmail.com X-Host-Fingerprint: 209.85.223.181 mail-ie0-f181.google.com Received: from [209.85.223.181] ([209.85.223.181:36113] helo=mail-ie0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/00-00917-943F4F05 for ; Tue, 15 Jan 2013 01:12:26 -0500 Received: by mail-ie0-f181.google.com with SMTP id 16so6502398iea.40 for ; Mon, 14 Jan 2013 22:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oDNCk0+dZEeWlSZokLuBUM4ZU7kccY07Lhkus036G8Q=; b=KfBVHpFqgiXff9XasX/Q/ESy66V2H5k/5o4+Cxc0jKBx4hXgmMVMZd4t9ki8jEw6tN qcSGrr8AFH3iks2lOEFNlnuyZmmL3UacXh19ckTaHnt3a/2Apq9aFtc8fwaskhxcY1H9 Pro3WSF5hIavqzmt2XWRJtMg08irxQO36zxDhPIe93eL6dUXd6KwQ364s5z4fjismdtG 98BB+3/QBwSKDhv4VZcouNxd/OLwOzlpX5ERbBD4cZoNLMAZ6N51Yin1pKjPzPaAHWMZ 4nVi+DB73khGKwvy2kAfj9+rbeck/qJC4sXfNJfwD8CcQgJsp7fxRLCq73Cx4vX6LUdr lthg== MIME-Version: 1.0 Received: by 10.50.95.135 with SMTP id dk7mr818779igb.55.1358230343326; Mon, 14 Jan 2013 22:12:23 -0800 (PST) Received: by 10.64.102.135 with HTTP; Mon, 14 Jan 2013 22:12:23 -0800 (PST) In-Reply-To: <50F49AD7.70409@gmail.com> References: <50F4802C.5070003@php.net> <42E0BBCF-074E-493C-9FEA-CE87EE21CE7D@strojny.net> <50F49AD7.70409@gmail.com> Date: Mon, 14 Jan 2013 22:12:23 -0800 Message-ID: To: Matt Pelmear Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] array_column() function From: hermanradtke@gmail.com (Herman Radtke) > If it is called "array_pluck" it should remove the data in question from the > original array. (I'm not saying that is a desirable feature here, I'm just > saying that makes more sense based on the meaning of the name you seem to > prefer.) Why do you think pluck is destructive? In most examples I have come across it merely 'plucks' a certain key from a dictionary and does so in a way that does not modify the original dictionary. Sources: Underscore.js - http://documentcloud.github.com/underscore/#pluck Rails - http://apidock.com/rails/ActiveRecord/Calculations/pluck Python example: http://stackoverflow.com/questions/9816545/pluck-in-python -- Herman Radtke @hermanradtke | http://hermanradtke.com