From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15969 invoked by alias); 8 Mar 2013 08:40:28 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17681 Received: (qmail 25427 invoked from network); 8 Mar 2013 08:40:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 74.125.82.177 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=nJuYC6hxyTbEsSkkIgbo+n+rnvhWLuAN6uQCf7VJzkY=; b=mbIFfbLB0rN+kjRw/WMReWlbp+da7gX2laU37rmble5+xwWpkeBKp8s6xjyDmTdts4 vmBHLP8S711idH3IACXafUG+IHnPchNcNSs4JkNumRJSOs54t40FAlQ9H3ST/aB2Yvzm 0Ee55FaM22725zk4V22KTTSd8O5Ytl1tC0qlESw9bUwGZ8ZI2WT0ks4ciy1LKODtZG6M iFmzsSFQJiD7PfsdlMnL9mo817vuIAq9oGGHKuCAqfXlXjnNo4wCe0+PsNMscqNTWrPY VA2D7GYeRt19+TDPk8TQlSta7quLqedY4RcqZOAe0Q2z7L+Vgn9FRc+nafNpEuZ0Zq+i LGyA== X-Received: by 10.194.83.105 with SMTP id p9mr2043743wjy.56.1362732007084; Fri, 08 Mar 2013 00:40:07 -0800 (PST) Date: Fri, 8 Mar 2013 08:40:02 +0000 From: Stephen Blott To: Zsh Users Subject: Re: Higher order functions in zsh (article link) Message-ID: <20130308084002.GA21406@computing.dcu.ie> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) On Thu, Mar 07, 2013 at 10:55:01AM +0530, rahul wrote: >THis has been posted on reddit programming, thought I'd share with you. > >http://yannesposito.com/Scratch/en/blog/Higher-order-function-in-zsh/index.html ---end quoted text--- The examples look like those of a Java programmer translating their Java programming style to shell programming. They can be better solved with zargs or, if you insist on a Posix shell, then pipes. Pipes in Unix-like systems play exactly the role of map, filter and reduce in functional systems. That's not to say that there's no merit to the idea. I'd just like to see more compelling examples. Steve